I\'m trying to iterate through an array of elements. jQuery\'s documentation says:
jquery.Each() documentation
Returning non-false is the same
What they mean by non-false is:
return true;
So this code:
var arr = ["one", "two", "three", "four", "five"]; $.each(arr, function(i) { if (arr[i] == 'three') { return true; } console.log(arr[i]); });
will log one, two, four, five.
one
two
four
five