weedout

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1,046
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1,046
  • 0.1.3
    700
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i weedout

Weekly Downloads

1,343

Version

1.0.1

License

MIT

Last publish

Collaborators

  • zertz