- Preparing search index...
- The search index is not available
Documentation
- hasPropertyT<Obj, T>(obj: Obj, property: string, isT: ((t: unknown) => t is T)): boolean
-
Parameters
-
obj: Obj
-
property: string
-
isT: ((t: unknown) => t is T)
-
- (t: unknown): t is T
-
Returns t is T
Returns boolean
Check if an object contains the property and the type of the property value is T