4

I am using Node.js async/waterfall, find this strange pattern of program:

var callback = (0, _once2.default)(callback || _noop2.default);

can someone explain what (0, _once2.default) means? why not directly use _once2.default?

try-catch-finally
  • 7,436
  • 6
  • 46
  • 67
Jacky Lau
  • 665
  • 5
  • 21
  • you may have a look here, too: http://stackoverflow.com/questions/6577812/calling-function-with-window-scope-explanation-0-function – Nina Scholz Oct 19 '16 at 08:41

0 Answers0