Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/component/exclude
- Owner: component
- License: mit
- Created: 2014-04-26T20:34:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-26T20:34:12.000Z (over 10 years ago)
- Last Synced: 2024-12-13T07:58:05.337Z (15 days ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 7
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]