Created
September 11, 2014 15:33
-
-
Save moimikey/1259c241250baa9a036d 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
# reduce an array of numbers and return | |
# the sum | |
Util.reduceAddArray = (arr) -> | |
return unless Util.isArrayNumbers(arr) | |
_.reduce arr, (a, b) -> | |
a + b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment