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 54
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.