Constructor
new Base()
- Since
- 1.5.0
- Copyright
- schukai GmbH
- License
- AGPLv3
- See
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/hasInstance
Derived classes should implement a static getter
instanceSymbol
which returns a unique symbol.static get [instanceSymbol]() { return Symbol.for("@schukai/monster/types/base"); }
The class was formerly called Object.
Members
(static) instanceSymbol
This method is called by the
instanceof
operator.This method is called by the instanceof
operator.
- Since
- 2.1.0
Methods
toString() → {string}
Returns:
- Type:
- string
(static) Symbol.hasInstance(that) → {boolean}
This method is called by the
instanceof
operator.This method is called by the instanceof
operator.
Parameters:
Name | Type | Description |
---|---|---|
that |
- Since
- 2.1.0
Returns:
- Type:
- boolean