Max value utility
$ component install component/max
Return the max value in array:
max([1,5,6,1,2,0])Max value in array with callback fn(val, i):
varage=max(users,function(u){returnu.age})Max value in array with the given property string:
varage=max(users,'age')MIT