Function without

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

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

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to inspect.

    • Optional Rest...values: T[]

      The values to exclude.

    Returns T[]

    Returns the new array of filtered values.

    0.1.0

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

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