Skip to content

Instantly share code, notes, and snippets.

@veer66
Created August 29, 2013 13:04
Show Gist options
  • Save veer66/6377804 to your computer and use it in GitHub Desktop.
Save veer66/6377804 to your computer and use it in GitHub Desktop.
A simple async.js map example
var async = require('async');
var y = async.map([1,2,3],
function(x, fn) {
fn(null, x * 10);
},
function(err, y) {
console.log(y);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment