if...else conditions or a more clean
switch...case statement, so I ran a simple test on jsperf, and it turns out that the
switch statement is 79% slower than the corresponding
Obviously it may depend by other factors in case of a more complex code, but still from now on I will prefer simple
if statements when possible.