can be as simple as `switch is faster (http://jsperf.com/testing-value-is-primitive/5)`