Created
December 21, 2015 21:27
-
-
Save mcavaliere/ecf8d7759340bd6e9a9f 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
// 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