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();
More Related Contents:
- Anonymous class instance —- is it a bad idea?
- Get functions (methods) of a class [duplicate]
- JavaScript Extending Class
- Typescript: can not access member value in inherited class constructor
- Does ECMAScript 6 have a convention for abstract classes? [duplicate]
- Split a Javascript class (ES6) over multiple files?
- Why aren’t methods of an object created with class bound to it in ES6?
- When should I use a return statement in ES6 arrow functions
- Using Node.js require vs. ES6 import/export
- ES6 destructuring function parameter – naming root object
- Understanding prototypal inheritance in JavaScript
- What is the motivation for bringing Symbols to ES6?
- How to destructure into dynamically named variables in ES6?
- JavaScript private methods
- ECMAScript 2015: const in for loops
- Create object from array
- How to generate range of numbers from 0 to n in ES2015 only?
- Error Duplicate Const Declaration in Switch Case Statement
- ES6 Dynamic class names
- Is there a way to tell if an ES6 promise is fulfilled/rejected/resolved? [duplicate]
- How can I mock the imports of an ES6 module?
- spread operator vs array.concat()
- String interpolation on variable
- Why should forEach be preferred over regular iterators?
- How to use ES6 Fat Arrow to .filter() an array of objects
- Output an ES module using webpack
- What is the most efficient way to copy some properties from an object in JavaScript?
- Object destructuring solution for long arrays?
- ES6 export default with multiple functions referring to each other
- What is the exact parsing precedence of arrow function (fat arrow =>) in Javascript?