I have two array like a = [1,2,3] and b = [2,5] and I want result like result = [5]
How can I do this?
I have two array like a = [1,2,3] and b = [2,5] and I want result like result = [5]
How can I do this?
const a = [1,2,3]
const b = [2,5]
const unique = b.filter(e => !a.includes(e))
console.log(unique)