JavaScript - forEach with Breaking

This is a simple test page which illustrates how you can implement the forEach function so that breaking is supported. This implementation was originally written by Chris West and can be found here. Clicking the button below will display the first perfect square in this list: .