@s-libs/micro-dash
    Preparing search index...

    Function remove

    • 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

      • O

      Parameters

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

      Returns O[]

    • 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

      • T

      Parameters

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

      Returns T[]