DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript filter array by another array
arr1 = [1,2,3,4], arr2 = [2,4], response = arr1.filter(item => !arr2.includes(item));
PREVIOUS
NEXT
Tagged:
#javascript
#filter
#array
#array
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit