is MethodStatic

return whether this Entity class is a subclass of another Entity class

is(otherClass: ): boolean

@note the subclass-ness is checked according to JavaScript inheritance, to check the underlying raw EC class's inheritance, you can use ECClass.is

@note this should have a type of is<T extends typeof Entity>(otherClass: T): this is T but can't because of typescript's restriction on the this type in static methods

Parameter Type Description
otherClass  

Returns - boolean

Defined in

Last Updated: 21 November, 2024