• 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.

    • Optionalvalues: List<T>

      The values to remove.

    Returns T[]

    Returns array.

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

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

    • T

    Parameters

    • array: List<T>
    • Optionalvalues: List<T>

    Returns List<T>

    _.pullAll