Cheat sheet: creating Arrays http://2ality.com/2018/12/creating-arrays.html#cheat-sheet-creating-arrays …pic.twitter.com/RcQMQUYXoh
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Also, IMHO `new Array(3)` is just as brittle: if you accidentally introduce another argument e.g. `new Array(3, 3)` you suddenly get an array of length 2.
Isn't creating arrays of undefined a perf issue I think i learnt this from one of your talk explaining why holey arrays are bad.
I believe Array.from() and ES6 has dispelled a lot of the arraylike-magic & made many hacks ([].prototype.slice et al) redundant anachronisms…I do think that's good! But { length: X } as an arraylike shortcut is so integral to "how JS works", I don't feel it being a hack anymore
With arguments becoming rare and most (all?) DOM collections being at least iterable, “Array-like” becomes much less relevant.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.