Skip to content

Instantly share code, notes, and snippets.

@mcavaliere
Created December 21, 2015 21:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcavaliere/ecf8d7759340bd6e9a9f to your computer and use it in GitHub Desktop.
Save mcavaliere/ecf8d7759340bd6e9a9f to your computer and use it in GitHub Desktop.
// Old
function sum($elements) { /* calculate sum */ }
function product($elements) { /* calculate sum */}
// New
var MathUtils = {
function sum($elements) {},
function product($elements) {}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment