Skip to content

RealImage/unset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple method to unset nested attributes from a JSON object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors