Skip to content

Instantly share code, notes, and snippets.

@marti1125
Created July 1, 2013 05:07
Show Gist options
  • Save marti1125/5898481 to your computer and use it in GitHub Desktop.
Save marti1125/5898481 to your computer and use it in GitHub Desktop.
get Min in Array dimesional
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