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

    dot-accesspublic

    dot-access

    Access object properties using dot notation.

    var dotAccess = require('dot-access');
     
    var user = { 
      fullname: { 
        first: 'Joe', 
        last: 'M' 
      } 
    };
     
    // get
    dotAccess.get(user, 'fullname.first'); // 'Joe'
     
    // or set
    dotAccess.set(user, 'fullname.last', 'T'); // 'T'

    Installation

    Install with component(1):

    $ component install nthtran/dot-access
    

    API

    License

    MIT

    Keywords

    none

    install

    npm i dot-access

    Downloadsweekly downloads

    16,159

    version

    1.0.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar