dotnotation

1.0.1 • Public • Published

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');
});

/dotnotation/

    Package Sidebar

    Install

    npm i dotnotation

    Weekly Downloads

    3

    Version

    1.0.1

    License

    none

    Last publish

    Collaborators

    • enome