Documentation / base / IS_SUBCLASS_OF
Function: IS_SUBCLASS_OF()
IS_SUBCLASS_OF<
B,D>(derived,base):derived is D
Defined in: libs/base/src/utils.ts:661
Check if a constructor is a subclass of another constructor.
Type Parameters
B
B extends (...args) => any
D
D extends (...args) => any
Parameters
derived
(...args) => any
The derived constructor.
base
B
The base constructor.
Returns
derived is D
True if the derived is a subclass of the base, false otherwise.