Skip to content

Instantly share code, notes, and snippets.

@nealfennimore
Created April 22, 2014 16:15
Show Gist options
  • Save nealfennimore/11185181 to your computer and use it in GitHub Desktop.
Save nealfennimore/11185181 to your computer and use it in GitHub Desktop.
Javascript Each Loop
// Underscore JS for better "enumerable" functions - underscorejs.org
var config = {
openOnLoad: false,
defaultName: "Jane",
options: ["Red", "Green", "Blue"]
};
config.options.forEach(function(option){
console.log(option);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment