• Removes elements from array corresponding to the given indexes and returns an array of the removed elements. Indexes may be specified as an array of indexes or as individual arguments.

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

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to modify.

    • Rest...indexes: Many<number>[]

      The indexes of elements to remove, specified as individual indexes or arrays of indexes.

    Returns T[]

    Returns the new array of removed elements.

  • Type Parameters

    • T

    Parameters

    • array: List<T>
    • Rest...indexes: Many<number>[]

    Returns List<T>

    _.pullAt