Skip to content

Instantly share code, notes, and snippets.

@TheSavior
Last active October 12, 2015 23:16
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 TheSavior/a313d6ab07ba029d1837 to your computer and use it in GitHub Desktop.
Save TheSavior/a313d6ab07ba029d1837 to your computer and use it in GitHub Desktop.
CommonJS Testing Private Function
'use strict';
function add(num1, num2) {
return num1 + num2;
}
var Utils = {
add2: function(num) {
return add(num, 2);
}
};
module.exports = Utils;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment