eivindfjeldstad-dot

Get and set object properties with dot notation

dot

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