8000 GitHub - dominicbarnes/dot: Get and set object properties with dot notation · GitHub
[go: up one dir, main page]

Skip to content
dominicbarnesPublic

About

Get and set object properties with dot notation

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dot

Get and set object properties with dot notation

Installation

$ component install eivindfjeldstad/dot

API

dot.set(object, path, value)

dot.set(obj, 'cool.aid', 'rocks');
assert(obj.cool.aid === 'rocks');

dot.get(object, path)

var value = dot.get(obj, 'cool.aid');
assert(value === 'rocks');

License

MIT

About

Get and set object properties with dot notation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0