|
|
|
|
|
by Forge36
1780 days ago
|
|
Couple of weird language edge cases JS allows functions to by called by name. A.foo(); Can be A["foo"]() Because foo is now a string it's possible to add levels of indirection. Action(name) {
A[name]();
} It's possible the list of actions to perform are sent to the client as data. This amiguity has left enough doubt for most tools, and people making tree shaking a practice on code not commonly performed. The longer that happens the scarier it becomes to start investigating. Since the browser will tree shake for you the incentive to cleanup your source is also less important. |
|