Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    dotnotationpublic

    API

    var object = {
      shipping: {
        europe: '15',
        america: '22'
      }
    };
     
    it('returns 15', function () {
      dotnotation(object, 'shipping.europe').should.eql('15');
    });
     
    it('returns 22', function () {
      dotnotation(object, 'shipping.america').should.eql('22');
    });

    Keywords

    none

    install

    npm i dotnotation

    Downloadslast 7 days

    3

    version

    1.0.1

    license

    none

    last publish

    collaborators

    • avatar