Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created February 23, 2012 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahoward/1890197 to your computer and use it in GitHub Desktop.
Save ahoward/1890197 to your computer and use it in GitHub Desktop.
var iterator = function(callback){
var list = [0, 1, 2];
for(var i = 0; i < list.length; i++){
var value = list[i];
callback(value);
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment