Takaro - v0.4.11
    Preparing search index...

    Function remove

    • Removes all elements from array that predicate returns truthy for and returns an array of the removed elements. The predicate is invoked with three arguments: (value, index, array).

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

      Type Parameters

      • TList extends MutableList<any>

      Parameters

      • array: RejectReadonly<TList>

        The array to modify.

      • Optionalpredicate: ListIteratee<TList[0]>

        The function invoked per iteration.

      Returns TList[0][]

      Returns the new array of removed elements.