Options
All
  • Public
  • Public/Protected
  • All
Menu

Module without

Index

Functions Array

Array Functions

  • default(array: any, ...values: any[]): any[]
  • 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

    see

    difference, union, unionBy, unionWith, xor, xorBy, xorWith

    example

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

    Parameters

    • array: any

      The array to inspect.

    • Rest ...values: any[]

    Returns any[]

    Returns the new array of filtered values.