- isKey<T>(enumObj, key): key is EnumKey<T>
Parameters
- enumObj: T
- key: undefined | null | string
Returns key is EnumKey<T>
- isKey<T>(enumObj): ((key: string | null | undefined) => key is EnumKey<T>)
Returns ((key: string | null | undefined) => key is EnumKey<T>)
- (key): key is EnumKey<T>
Parameters
- key: string | null | undefined
Returns key is EnumKey<T>