Skip to content

Instantly share code, notes, and snippets.

@pykong
Created April 27, 2018 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pykong/6b2e68a642e19e9145a5e4c15b03f3ea to your computer and use it in GitHub Desktop.
Save pykong/6b2e68a642e19e9145a5e4c15b03f3ea to your computer and use it in GitHub Desktop.
arr = [
{"x":"8/11/2009","y":0.026572007},
{"x":"8/12/2009","y":0.025057454},
{"x":"8/13/2009","y":0.024530916},
{"x":"8/14/2009","y":0.031004457}
]
Math.max.apply(Math, arr.map(function(o) {return o.y;}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment