Skip to content

Instantly share code, notes, and snippets.

@medikoo
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save medikoo/11031359 to your computer and use it in GitHub Desktop.
Save medikoo/11031359 to your computer and use it in GitHub Desktop.
'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