DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
remove all elements of one array from another javascript
a = a.filter(function (item) { return b.indexOf(item) === -1; });
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#elements
#array
#javascript
ADD COMMENT
Topic
COMMENT
Name
9+7 =
Submit