Function findKey

  • Type Parameters

    • S extends Record<string | number | symbol, any>
    • T = any

    Parameters

    • subject: S
    • predicate: ((this: T, key: keyof S, index: number, obj: (keyof S)[], subject: S) => boolean)
        • (this, key, index, obj, subject): boolean
        • Parameters

          • this: T
          • key: keyof S
          • index: number
          • obj: (keyof S)[]
          • subject: S

          Returns boolean

    • OptionalthisArg: T

    Returns keyof S | undefined