public
Created

  • Download Gist
iterator.js
JavaScript
1 2 3 4 5 6 7 8 9 10
var iterator = function(callback){
 
var list = [0, 1, 2];
 
for(var i = 0; i < list.length; i++){
var value = list[i];
callback(value);
};
 
};

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.