Skip to content

Instantly share code, notes, and snippets.

@domdoescode
Created November 19, 2013 14:59
Show Gist options
  • Save domdoescode/7546599 to your computer and use it in GitHub Desktop.
Save domdoescode/7546599 to your computer and use it in GitHub Desktop.
Which is better and why?
module.exports = function () {
function myFunction(callback) {
return callback()
}
return {
myFunction: myFunction
}
}
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