Last active
August 29, 2015 14:00
-
-
Save medikoo/11031359 to your computer and use it in GitHub Desktop.
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
'use strict'; | |
// Define reusable utils, outside of exported function body | |
var someUtilA = function () { | |
/* ... */ | |
}; | |
var someUtilB = function () { | |
/* ... */ | |
}; | |
// Export main function | |
module.exports = function (a, b, c) { | |
/* ... */ | |
var d = someUtilA(a, b); | |
/* ... */ | |
return result; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment