unset-value
Install
$ npm install --save unset-valueUsage
var unset = require('unset-value');
var obj = {a: {b: {c: 'd', e: 'f'}}};
unset(obj, 'a.b.c');
console.log(obj);
//=> {a: {b: {e: 'f'}}};Examples
Updates the object when a property is deleted
var obj = {a: 'b'};
unset(obj, 'a');
console.log(obj);
//=> {}Returns true when a property is deleted
Returns true when a property does not exist
true when a property does not existdelete nested values
throws on invalid args
About
Related projects
Contributing
Contributors
Building docs
Running tests
Author
License
Last updated