Answers for "filter an array with values in another array in javascript"

3

javascript filter array by another array

arr1 = [1,2,3,4],
arr2 = [2,4],
response = arr1.filter(item => !arr2.includes(item));
Posted by: Guest on March-24-2021

Code answers related to "filter an array with values in another array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language