3 ms·
Well, how about this then: class ExampleClass { example() { console.log(this.v); } } Called as such: const e = new ExampleClass(); e.
by Vinnl 9y ago
Well, how about this then:
class ExampleClass {
example() { console.log(this.v); }
}
Called as such:
const e = new ExampleClass();
e.example.apply({ v: 'One' });
e.example.apply({ v: 'Two' });
- aljarry 9y agoI don't see how could it support properties added at runtime. I'd wager it supports only the properties defined inside of the class.