I wanted to get a maximum and minimum of an Array. The Array comes in PHP and I use Json to convert to JavaScript. I used Math.max.apply(null, js_array)
_function but it does not work for me.
//convert php array to javascript
var js_array = [<?php echo '"'.implode('","', $array_nombre).'"' ?>];