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