Created
July 1, 2013 05:07
-
-
Save marti1125/5898481 to your computer and use it in GitHub Desktop.
get Min in Array dimesional
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
var arr = [[1, 5], [4, 7], [3, 8], [2, 3], | |
[12, 4], [6, 6], [4, 1], [3, 2], | |
[8, 14]]; | |
console.log(Math.min.apply(Math, arr.map(function(i) { | |
return i[1]; | |
}))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment