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