get min/max value in 2d array
I have a 2d array where I need to get the min and max value of each column. I tried various examples on stackoverflow but I cannot find the right solution. If somebody could give me a hint, I would be very grateful.
not sure what you are exactly looking for since you are not providing a sample cvs…
finding the min/max of a simple array goes like this. hopefully that will get you started…
var myMax = Math.max.apply(Math, array);
and
var myMin = Math.min.apply(Math, array);