Difference between exporting functions

3

Is there any difference between:

module.exports = (function () {

  // Code.

})();

E:

module.exports = function () {

  // Code.

};

Considering the context of exporting and importing modules?

    
asked by anonymous 20.01.2018 / 20:32

0 answers