dot-access

Access object properties using dot notation.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
dot-access
1131.0.08 years ago9 years agoMinified + gzip package size for dot-access in KB

Readme

dot-access
Access object properties using dot notation.
```js 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