Is there late static binding in es6 classes.(without hacks)
For example:
class Base {
static make() {
return new ....
}
}
class Implementation1 extends Base {}
class Implementation2 extends Base{}
Basically I want to set base static methods in the base class and do this:
Implementation1::make(); Implementation2::make();
Without copying the method in each class.
The alternative in PHP is:
return new static();