https://tutorial.eyehunts.com/js/javascript-break-if-using-in-loop-example-code/
JavaScript break if using in Loop | Example code