Great post! Very detailed.
Instead of using the spread operator, you could also make use of Array.from. You can define the length by passing in an object and use the second argument to loop over it. No need to call Array.map on it
I'm a JS Subject Matter Expert (SME) that has spent the past few years spearheading curricula and teaching initiatives at colleges and bootcamps, in person and virtually.
Great post! Very detailed.
Instead of using the spread operator, you could also make use of
Array.from
. You can define the length by passing in an object and use the second argument to loop over it. No need to callArray.map
on it🔥 Hot tip. Welcome to the community!
This is fantastic, thanks so much for sharing!