https://chintanonweb.medium.com/mastering-javascript-loops-5-ingenious-ways-to-break-a-foreach-loop-37025aeadef1