News for hackers. Stuff that matters.
Re:Click by halfmatthalfcat on Friday March 19, 2021 @06:40PM (#26518881)
Traditional for loops are probably the most common for ranges but if you want a more functional approach you can use the Array constructor or Array.prototype.from with its various parameters.
Re:Click by franky47 on Friday March 19, 2021 @06:45PM (#26518923)
The functional approach also works better as a one-liner when typed in the devtools console.