Skip to content

component/exclude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]