Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/exclude

remove values in an array
https://github.com/component/exclude

Last synced: 13 days ago
JSON representation

remove values in an array

Awesome Lists containing this project

README

        

# Exclude

Remove values in an array contained in other arrays.

```js
var arr = [
1, 2, 3, 4, 5
]

var exclude = require('array-exclude')

var res = exclude(arr, [
[2, 3],
[5]
])

// => [1, 4]