I am trying to repeat through the array of elements. The documentation for jQuery says:
Non-false returning is similar to an ongoing statement in a loop, leaving it immediately at the next frequency.
I have tried to 'return the wrong'; 'And' non-liars; ' (Without returns) neither of which can not leave the next trend. Instead, they break the loop. What am i missing
What do they mean by non-liars:
returns correct ;
then this code:
var arr = ["one", "two", "three", "four", "five"]; $ .eich (AR, function (i) {if (arr [i] == 'three') {return true;} alert (ARR [i]);});
one, two, four, five
Comments
Post a Comment