4.17.11
3.10.1
2.4.2
1.3.1
_.without(array, [values])
Creates an array excluding all given values using
SameValueZero
for equality comparisons.
Note: Unlike _.pull
, this method returns a new array.
Since
0.1.0
Arguments
argument
array
[values]
type
Array
...*
description
The array to inspect.
The values to exclude.
Returns
(array)
Example
_.without([2, 1, 2, 3], 1, 2);
// => [3]
_.without([2, 1, 2, 3], 1, 2);
// => [3]