unset
v0.0.2
Published
A simple method to unset nested attributes from a JSON object.
Downloads
11
Readme
Unset
A simple method to unset nested attributes from a JSON object.
Sample usage:
let unset = require('unset');
let object = {a: { b: [ {x: 1}, {x: [{ e: 2} ]}]}}
let newObject = unset(object, ['/a/b[*]/x'])
The second argument paths is similar to the paths that you can give in the json-path module