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

    Function findInArray

    • Find an item in an array by a specific property and value.

      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 undefined | T

      The found item or undefined.