Created
September 12, 2016 22:32
-
-
Save anoopemacs/036e3094cbee3791c85ca054c9b7f6fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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