Please find the below array JSON Object.
points:[{x:1, YValues:[34,45,56]}, {x:5, YValues:[20,12,30]}, {x:8, YValues:[12,13]}]
I want to find the maximum value of X and find the maximum value of YValues separately.
I don't expect for loop to find the maximum value. Expecting in simple way to find the maximum of X as well as maximum of YValues from points JSON object.
Is it possible to use Math.max or any custom function ?
Thanks, Siva