isInstanceOf Function
Returns true if obj
is an object of class T
.
isInstanceOf<T>(obj: any, constructor: Constructor<T>): boolean
@see asInstanceOf to cast obj
to class T
.
Parameter | Type | Description |
---|---|---|
obj | any | |
constructor | Constructor<T> |
Returns - boolean
Defined in
- core/bentley/src/UtilityTypes.ts Line 38
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.