Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 482 Bytes

Readme.md

File metadata and controls

38 lines (22 loc) · 482 Bytes

variance

variance utility

Installation

$ component install component/variance

API

variance(array)

Return the variance of array:

variance([1,5,6,1,2,0])

variance(array, fn)

variance of array with callback fn(val, i):

var age = variance(users, function(u){ return u.age })

variance(array, string)

variance of array with the given property string:

var age = variance(users, 'age')

License

MIT