Skip to content

Instantly share code, notes, and snippets.

@anoopemacs
Created September 12, 2016 22:32
Show Gist options
  • Select an option

  • Save anoopemacs/036e3094cbee3791c85ca054c9b7f6fb to your computer and use it in GitHub Desktop.

Select an option

Save anoopemacs/036e3094cbee3791c85ca054c9b7f6fb to your computer and use it in GitHub Desktop.
function cb (err, res) {
return res;
}
function secondArg (oneName, cb) {
oneName = oneName + '___2';
cb(null, oneName)
}
var toDl = ['a', 'b', 'c', 'd'];
async.map(toDl, secondArg, function(error, results) {
console.log(results);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment