without

Array
since 0.1.0

Arguments

  • Array The array to inspect.
  • ...* The values to exclude.

Returns

Array the new array of filtered values.

Creates an array excluding all given values using SameValueZero for equality comparisons.

Note: Unlike _.pull, this method returns a new array.

Example of Lodash _.without

_.without([2, 1, 2, 3], 1, 2);
// => [3]