javascript difference between two arrays

42

javascript difference between two arrays -

let difference = arr1.filter(x => !arr2.includes(x));

array differenc javascript -

let difference = arr1.filter(x => !arr2.includes(x));

Comments

Submit
0 Comments