ES6 – Call static method within a class

If you are calling the static function from inside an instance, the right way to refer to the static function of the class is:

this.constructor.functionName();

Call static methods from regular ES6 class methods

Leave a Comment