Created
October 10, 2016 07:35
-
-
Save harisrozak/04be4c48656002193056c1a4bdff9ddc to your computer and use it in GitHub Desktop.
jQuery break or continue looping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = { | |
... | |
} | |
x.each(function(){ | |
if(x == 'break') return false; | |
else if(x == 'continue') return true; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment