Page Contents
Home > @loopback/boot > isClass
isClass() function
Given a function, returns true if it is a class, false otherwise.
Signature:
export declare function isClass(target: any): target is Constructor<any>;
Parameters
Parameter | Type | Description |
---|---|---|
target | any | The function to check if it’s a class or not. |
Returns:
target is Constructor<any>
True if target is a class. False otherwise.