@JakeGoulding according to http://jsperf.com/if-else-chain-vs-switch-true … it's marginally faster in many browsers. Not worth the wtf factor, though.
JS people: is it common to do `switch(true) { case someMethodCall() …}`? I've seen it twice recently, and been told it was more efficient.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.