The real benefit of 'Array.from({ length: 5 }, (i) => { ... })' is that it doesn't allocate an intermediate array to map on. This could lead to significant performance improvement, especially on large arrays.
@andrew-burgess6 ай бұрын
Ooh, good to know!
@AfonsoSantos-dx2hq6 ай бұрын
Really enjoyed watching, would love more javascript basics videos like this one
@laesseV6 ай бұрын
We lately had exactly that bug where a coworker removed that "unnecessary" spread of Array(x)
@krzysztofprzybylski27506 ай бұрын
As much as I like js I feel like sparse arrays were created as a gotcha for developers young and old.
@alexjohnson-bassworship31506 ай бұрын
Loved it, as usual!!!
@tarikeljabiri6 ай бұрын
Hi man, this video made my tests green, thank you a lot 🙏
@MichiganTypeScript6 ай бұрын
always a good day when a notification for a new Andrew Burgess comes in!
@Fullflexno6 ай бұрын
Supercool!
@Nikgek6 ай бұрын
really interesting info, thanks
@krccmsitp28846 ай бұрын
JS is insane 😜
@maso4u6 ай бұрын
do you mind going over you ide, how you have it set up and how do you navigate around it with mostly jyour keyboard
@TheShoAn6 ай бұрын
[1, 2, 3, 4, 5] that's how i create an array
@deadlyecho6 ай бұрын
They should have just gone with a consistent approach where the sparse "empty" cells have an undefined value rather than them being literally empty which affects the stream operators of the array... typical JS 🤦♂️