Answers for "js compare two arrays, remove the same items to get a new array"

0

compare two arrays and remove duplicates javascript

array1 = array1.filter(function(val) {
  return array2.indexOf(val) == -1;
});
Posted by: Guest on September-08-2021

Code answers related to "js compare two arrays, remove the same items to get a new array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language