Appreciate the feedback, good point that I didn't dig in how to break out of the for loop. I assumed people knew how to do it but thats maybe a faulty assumption.
Good point about the for-of loop !== for loop, will be more careful in the future :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.