JavaScript: Filter array values
// Filter array values that are not present in array b
let a = [1,2,3,5];
let b = [2,1,4,3];
let c = a.filter(item => !b.includes(item));
console.log(c);
Output:
[ 5 ]
Execute above code here
harikrishna.hashnode.dev1 min read