Re:Click
by smoe on Friday March 19, 2021 @06:51PM
(#26518980)
The other comment points out Array.from, which seems pretty nifty. Have not seen it before. I would have used:
or
[ Parent
| on HN ]
why create the array?
for(let i = 0; i < 1000; i++) button.click()
wouldn’t be surprised if Javascript has some weird optimization under the hood!