Skip to content
/ weedout Public

Removes the value at the specified path, also traversing object arrays.

License

Notifications You must be signed in to change notification settings

Zertz/weedout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weedout Build Status NPM version js-standard-style

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

About

Removes the value at the specified path, also traversing object arrays.

Resources

License

Stars

Watchers

Forks

Packages

No packages published