es6 get different element between 2 array code example Example: array differenc javascript let difference = arr1.filter(x => !arr2.includes(x));