Guest User

Untitled

a guest
Jul 15th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. var async = require('./async');
  2.  
  3. async([
  4. [
  5. function () {
  6. // do something
  7. this("result");
  8. },
  9. function () {
  10. // do something
  11. this("result2");
  12. }
  13. ],
  14. function () {
  15. // this[0] == "result" && this[1] == "result2"
  16. }
  17. ]);
Add Comment
Please, Sign In to add comment