Created
November 19, 2013 14:59
-
-
Save domdoescode/7546599 to your computer and use it in GitHub Desktop.
Which is better and why?
This file contains 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
module.exports = function () { | |
function myFunction(callback) { | |
return callback() | |
} | |
return { | |
myFunction: myFunction | |
} | |
} |
This file contains 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
module.exports = function () { | |
var myFunction = function (callback) { | |
return callback() | |
} | |
return { | |
myFunction: myFunction | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment