Skip to content

Instantly share code, notes, and snippets.

@wegorich
Created July 25, 2014 13:09
Show Gist options
  • Save wegorich/b9e4c3715bd5aebe6f24 to your computer and use it in GitHub Desktop.
Save wegorich/b9e4c3715bd5aebe6f24 to your computer and use it in GitHub Desktop.
JS doing the N.times in Ruby code
var list = Array.apply(null, { length: 100 }).map(Number.call, Number).map(function (i) {
return callback(i);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment