Answers for "compare 2 arrays and remove same item javascript"

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 "compare 2 arrays and remove same item javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language