ayoub d3fecec507 Auto COMMIT for build : 7193 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : update README.md | il y a 1 an | |
---|---|---|
README.md | il y a 1 an | |
index.js | il y a 1 an | |
package.json | il y a 1 an |
Get and set object properties with dot notation
$ npm install @d3v4pp/dot
dot.set(obj, 'cool.aid', 'rocks');
assert(obj.cool.aid === 'rocks');
var value = dot.get(obj, 'cool.aid');
assert(value === 'rocks');
var value = dot.delete(obj, 'cool.aid');
assert(!obj.cool.hasOwnProperty('aid'));