API Reference > bentleyjs-core > Utils > isInstanceOf 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/InstanceOf.ts Line 21 Last Updated: 11 June, 2024