Home > @rushstack/node-core-library > TypeUuid > isInstanceOf

TypeUuid.isInstanceOf() method

Returns true if the targetObject is an instance of a JavaScript class that was previously registered using the specified typeUuid. Base classes are also considered.

Signature:

static isInstanceOf(targetObject: unknown, typeUuid: string): boolean;

Parameters

Parameter Type Description
targetObject unknown  
typeUuid string  

Returns:

boolean