3 ms·
It's only working inside of EC6 classes.
by aljarry 9y ago
It's only working inside of EC6 classes.
- Vinnl 9y agoWell, 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.