@pathmaker-digital/pmd-utilities - v2.2.6
    Preparing search index...

    Function bulkRemoveFromArray

    • Remove multiple items from an array by matching a property against a list of values. Returns a new array without the matched items.

      Type Parameters

      • T
      • K extends string | number | symbol

      Parameters

      • array: T[]

        The original array.

      • key: K

        The property key to match.

      • values: T[K][]

        The list of values to remove.

      Returns T[]

      A new array without the matched items.