Created
February 16, 2015 01:34
-
-
Save gartenfeld/716286b3b133dfd12609 to your computer and use it in GitHub Desktop.
Binary combination adding to max.
This file contains hidden or 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
function ArrayAdditionI(arr) { | |
// code goes here | |
var max = Math.max.apply( Math, arr ), | |
idx = arr.indexOf(max); | |
if (idx>-1) { arr.splice(idx, 1) } | |
return arr | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment