Answers for "how to filter out items from an array that match with items 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 "how to filter out items from an array that match with items in another array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language