Creates an array of values from the first array that are not present in the second array.
The array to inspect.
The array containing values to exclude.
A new array containing elements from a that are not found in b.
a
b
difference([1, 2, 3, 4], [2, 4]);// → [1, 3] Copy
difference([1, 2, 3, 4], [2, 4]);// → [1, 3]
1.0.0
Creates an array of values from the first array that are not present in the second array.