Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Instead of the array spread syntax, why not:

    for(let i=0; i<clicks; i++){ e.click() };


Sure, it's the same. For some reason I don't like the 'for' syntax much, or having curly brackets on the same line. But to each their own.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: