- findKey<S, T>(subject, predicate, thisArg?): keyof S | undefined
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
Optional
thisArg: T
Returns keyof S | undefined