Monster.Types. Base

This is the base class from which the most classes are derived.

This class has besides a toString which returns the json representation of the object also a functionality to check if an object is an instance of a class.

Therefor the class has a static method [Symbol.hasInstance](that) which returns true if the object is an instance of the class.

Constructor

new Base()

Since
  • 1.5.0
License
  • AGPLv3
See

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:
NameTypeDescription
that
Since
  • 2.1.0
Returns:
Type: 
boolean