You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
534 B
Markdown
31 lines
534 B
Markdown
6 years ago
|
# arr-exclude [![Build Status](https://travis-ci.org/sindresorhus/arr-exclude.svg?branch=master)](https://travis-ci.org/sindresorhus/arr-exclude)
|
||
|
|
||
|
> Exclude certain items from an array
|
||
|
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```
|
||
|
$ npm install --save arr-exclude
|
||
|
```
|
||
|
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
var arrExclude = require('arr-exclude');
|
||
|
|
||
|
arrExclude(['a', 'b', 'c'], ['b']);
|
||
|
//=> ['a', 'c']
|
||
|
```
|
||
|
|
||
|
|
||
|
## Related
|
||
|
|
||
|
- [arr-include](https://github.com/sindresorhus/arr-include) - Include only certain items in an array
|
||
|
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT © [Sindre Sorhus](http://sindresorhus.com)
|