JavaScript tip: if (foo === x || foo === y) {} → if (~[x, y].indexOf(foo)) {} Saves repeated property lookups here: https://github.com/mathiasbynens/node-unshorten/blob/master/unshorten.js#L18 …
8:40 AM - 29 Sep 2011
10 replies
19 retweets
27 likes
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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.