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

    Function requireInArray

    • Find an item in an array by a specific property and value. Throws an error if not found.

      Type Parameters

      • T
      • K extends string | number | symbol

      Parameters

      • array: T[]

        The array to search.

      • key: K

        The property key to match.

      • value: T[K]

        The value to match.

      Returns T

      The found item.