2018-02-09 TWILPosted on: February 09, 2018
This Week I Learned
- I probably learned this a while ago already (relearned recently thanks to my stupid brain), but using a native
for
/while
loops for arrays is by far the quickest way of doing it: https://jsperf.com/foreach-vs-for-vs-for-of-vs-map-vs-while self
is a better way of accessing global context (it translates to non-web-based JS a lot easier for example): https://stackoverflow.com/a/36854071/113721- Mr. Brightside by The Killers never left U.K. charts. In fact, it was among the top 50 in 2017. Also... they’re from Nevada (I always thought they were British): https://noisey.vice.com/en_us/article/pg78ky/the-killers-mr-brightside-not-left-uk-charts-since-2004