Skip to content

Instantly share code, notes, and snippets.

@NicholasTD07
Last active August 29, 2015 14:14
Show Gist options
  • Save NicholasTD07/d730dd308b8ef7f53f2f to your computer and use it in GitHub Desktop.
Save NicholasTD07/d730dd308b8ef7f53f2f to your computer and use it in GitHub Desktop.
var arr = [ "one", "two", "three", "four", "five" ];
jQuery.each(arr, function(index, value) {
console.log(this);
return (this != "three"); // will stop running after "three"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment