No Description

ayoub d3fecec507 Auto COMMIT for build : 7193 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : update README.md 1 year ago
README.md d3fecec507 Auto COMMIT for build : 7193 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : update README.md 1 year ago
index.js d3fecec507 Auto COMMIT for build : 7193 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : update README.md 1 year ago
package.json d3fecec507 Auto COMMIT for build : 7193 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : update README.md 1 year ago

README.md

@D3v4pp/dot

GitHub license npm version Get and set object properties with dot notation

Installation

$ npm install @d3v4pp/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');

dot.delete(object, path)

var value = dot.delete(obj, 'cool.aid');
assert(!obj.cool.hasOwnProperty('aid'));