exclude

remove values in an array

Usage no npm install needed!

<script type="module">
  import exclude from 'https://cdn.skypack.dev/exclude';
</script>

README

Exclude

Remove values in an array contained in other arrays.

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

var exclude = require('array-exclude')

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

// => [1, 4]