- Preparing search index...
- The search index is not available
Documentation
Function hasOptionalPropertyT
- hasOptionalPropertyT<Obj, T>(obj, property, isT): boolean
-
Parameters
-
obj: Obj
-
property: string
-
isT: ((t) => t is T)
-
- (t): t is T
-
Returns t is T
Returns boolean
Check if an object has an optional property and if it has it, if the type is right