Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript filter array of objects by array

var arr = [1,2,3,4],
    brr = [2,4],
    res = arr.filter(f => !brr.includes(f));
console.log(res);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #filter #array #objects #array
ADD COMMENT
Topic
Name
1+3 =