ixfx
    Preparing search index...

    Function removeByFilter

    • Removes items from input array that match predicate. A modified array is returned along with the number of items removed.

      If predicate matches no items, a new array will still be returned, and the removed count will be 0.

      Type Parameters

      • T

      Parameters

      • input: T[]
      • predicate: (value: T) => boolean

      Returns [changed: T[], removed: number]