Answers for "see if two lists contain the same things javascript"

10

javascript check if elements of one array are in another

const found = arr1.some(r=> arr2.includes(r))
Posted by: Guest on March-26-2020
3

js check if two array have the same element

const intersection = array1.filter(element => array2.includes(element));
Posted by: Guest on June-25-2020

Code answers related to "see if two lists contain the same things javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language