by smoe · 5y ago · 0 comments
for(i of Array(1000).keys()) { doSomething() }
or [...Array(1000)].forEach(() => doSomething())for(let i = 0; i < 1000; i++) button.click()
wouldn’t be surprised if Javascript has some weird optimization under the hood!