Answers for "find unique elements in array two array es6"

0

function to find the unique elements from two arrays

var array3 = array1.filter(function(obj) { return array2.indexOf(obj) == -1; });
Posted by: Guest on June-21-2021
0

unique array by multiple properties

arr.filter((v,i,a)=>a.findIndex(t=>(t.place === v.place && t.name===v.name))===i)
Posted by: Guest on May-24-2021

Code answers related to "find unique elements in array two array es6"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language