Get and set object properties with dot notation
$ component install eivindfjeldstad/dot
dot.set(obj, 'cool.aid', 'rocks');
assert(obj.cool.aid === 'rocks');var value = dot.get(obj, 'cool.aid');
assert(value === 'rocks');MIT
8000
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Get and set object properties with dot notation
$ component install eivindfjeldstad/dot
dot.set(obj, 'cool.aid', 'rocks');
assert(obj.cool.aid === 'rocks');var value = dot.get(obj, 'cool.aid');
assert(value === 'rocks');MIT