how can I call a static function from an instantiated class variable?
Example:
class Foo {
static Bar() {
console.log("Bar");
}
}
let i = new Foo();
i.Bar() // Not working
// Something like this?
i.toClass().Bar();
how can I call a static function from an instantiated class variable?
Example:
class Foo {
static Bar() {
console.log("Bar");
}
}
let i = new Foo();
i.Bar() // Not working
// Something like this?
i.toClass().Bar();