without
_.without(values, array)
# Ⓢ [Ⓣ][1] Ⓝ
Creates an array excluding all given values using
for equality comparisons.
Note: Unlike _.pull, this method returns a new array.
Since
0.1.0
Arguments
values(*|*[]): The values to exclude.array(Array): The array to inspect.
Returns
(Array): Returns the new array of filtered values.
Example
_.without([1, 2], [2, 1, 2, 3]);
// => [3]