Remove the specified elements from the given array using strict equality for comparison.
npm install array-pullRemove the specified elements from the given array using strict equality for comparison.
Install with npm:
``sh`
$ npm install array-pull --save
`js
var pull = require('array-pull');
pull(['a', 'b', 'c'], 'c');
//=> ['a', 'b']
var arr = ['a', 'b', 'c'];
pull(arr, 'b', 'c');
// arr => ['a']
pull(['a', 'b', 'c'], 'a', 'b', 'c');
//=> []
`
You might also be interested in these projects:
* array-each: Loop over each item in an array and call the given function on every element. | homepage
* array-every: Returns true if the callback returns truthy for all elements in the given array. | homepage
* array-intersection: Return an array with the unique values present in _all_ given arrays using strict equality… more | homepage
* array-map: [].map(f) for older browsers | homepage
* array-unique: Return an array free of duplicate values. Fastest ES5 implementation. | homepage
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
`sh`
$ npm install verb && npm run docs
Or, if verb is installed globally:
`sh`
$ verb
Install dev dependencies:
`sh``
$ npm install -d && npm test
Jon Schlinkert
* github/jonschlinkert
* twitter/jonschlinkert
Copyright © 2016, Jon Schlinkert.
Released under the MIT license.
*
_This file was generated by verb, v0.9.0, on May 03, 2016._