weedout
v1.0.1
Published
Removes the value at the specified path, also traversing object arrays.
Downloads
8,366
Readme
weedout
Removes the value at the specified path, also traversing object arrays.
npm i weedout --save
Usage
const weedout = require('weedout')
const foo = weedout({
foo: {
bar: 42
}
}, 'foo.bar')
// foo = {}
const weedout = require('weedout')
const foo = weedout({
foo: [{
bar: 42
}]
}, 'foo.bar')
// bar = {
// foo: [{}]
// }
Contributing
I'd love for you to contribute and make weedout even better than it is today!
git clone https://github.com/Zertz/weedout.git
npm install
npm test