JavaScript - - By Sam Deering

jquery (js) skip out of each loop

Quick JavaScript snippet to skip out of each loop. Returning true skips to the next iteration, equivalent to a continue in a normal loop.

..inside loop such as foreach, $.each or .each etc...
if (condition){
   return false
}
....
Sponsors