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

    Function removeFromArray

    • Remove an item from an array by matching a property and value. Returns a new array without the matched item.

      Type Parameters

      • T
      • K extends string | number | symbol

      Parameters

      • array: T[]

        The original array.

      • key: K

        The property key to match.

      • value: T[K]

        The value to match.

      Returns T[]

      A new array without the matched item.