javascript - Jquery each loop not exiting by return 0 -


while exiting each loop- return 0 not working. however, changing return false works perfectly.

fiddle here

the regular javascript loops (while,for) exits fine return 0. doesn't breaks uniformity!

jquery documentation

we can break $.each() loop @ particular iteration making callback function return false. returning non-false same continue statement in loop; skip next iteration.

jsfiddle example


Comments

Post a Comment

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -