reject
object/array reject
Last updated 6 years ago by yields .
Original npm · Tarball · package.json
$ cnpm install reject 
SYNC missed versions from official npm registry.

reject

Simple reject utility, works on objects and arrays.

$ npm install reject

Example

// arrays

reject([1, null]); // => [1]
reject([1, null], parseInt) // => [null]
reject.types([1, null], 'null') // => [1]
reject.types([1, null, undefined], ['undefined', 'null']) // => [1]

// objects

reject({ one: 1, two: null }) // => { one: 1 }
reject({ one: 1, two: null }, parseInt) // => { two: null }
reject.types({ one: 1, two: null }, ['null']) // => { one: 1 }

License

(MIT)

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago

Copyright 2014 - 2016 © taobao.org |