4 ms·
It depends, sometimes if you have a few different context e.g. multiple click handlers that are being bound in different contexts of your app, that a table make
by taf2 13y ago
It depends, sometimes if you have a few different context e.g. multiple click handlers that are being bound in different contexts of your app, that a table makes a lot more sense then repeating the switch or even wrapping the switch in a function...