let's add a comment explaining why we decided to use switch + link to js-perf: http://jsperf.com/testing-value-is-primitive/5