You can drop the new
[...Array(1000)]
I think that is the least bits. Would love to be proven wrong :D
[...Array(1000)]
I think that is the least bits. Would love to be proven wrong :D
That's what I like in the elegance of Array.from({ length: 1000 }): it's a hack, but it reads naturally.