DEV Community

Discussion on: JavaScript One-Liners That Make Me Excited

 
qm3ster profile image
Mihail Malo

Wow, that's... humbling.
BTW, you could beat out ForLoop with:

const arr = new Array(100)
for (let i = 0, i < 100, i++)
  arr[i] = i

since the size is known in advance.