• This method is like _.pull except that it accepts an array of values to remove.

    Note: Unlike _.difference, this method mutates array.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to modify.

    • Optional values: List<T>

      The values to remove.

    Returns T[]

    Returns array.

    Example

    var array = [1, 2, 3, 1, 2, 3];

    _.pull(array, [2, 3]);
    console.log(array);
    // => [1, 1]
  • Type Parameters

    • T

    Parameters

    • array: List<T>
    • Optional values: List<T>

    Returns List<T>

    See

    _.pullAll

Generated using TypeDoc