javascript difference items in 2 array code example Example: javascript difference between two arrays let difference = arr1.filter(x => !arr2.includes(x));