Documentation / base / IS_INSTANCE_OF
Function: IS_INSTANCE_OF()
IS_INSTANCE_OF<
T>(value,constructor):value is InstanceType<T>
Defined in: libs/base/src/utils.ts:647
Check if a value is an instance of a specific constructor.
Type Parameters
T
T extends GenericConstructor<object>
Parameters
value
unknown
The value to check.
constructor
T
The constructor to check against.
Returns
value is InstanceType<T>
True if the value is an instance of the constructor, false otherwise.