• Removes all elements from array for which predicate returns truthy, and returns an array of the removed elements.

    Differences from lodash:

    • iterates over array in reverse order

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 16,363 bytes
    • Micro-dash: 118 bytes

    Type Parameters

    • I

    • O

    Parameters

    • array: I[]
    • predicate: ArrayNarrowingIteratee<O>

    Returns O[]

  • Type Parameters

    • T

    Parameters

    • array: T[]
    • predicate: ArrayIteratee<T, boolean>

    Returns T[]

Generated using TypeDoc