Basically I have an array of dates:
var array = ["2017-01-22 00:21:17.0",
"2017-01-27 11:30:23.0",
"2017-01-24 15:53:21.0",
"2017-01-27 11:34:18.0",
"2017-01-26 16:55:48.0",
"2017-01-22 11:57:12.0",
"2017-01-27 11:35:43.0"];
Which I need to sort this based on max and min date; I tried:
var lowest = _.max(array, function(o){return o.val;});
console.log(lowest);
But this returns -Infinity
and _.min returns Infinity
Regards :)