- mean(iterable): number | undefined
Returns number | undefined
- mean<T>(iterable, accessor): number | undefined
Parameters
iterable: Iterable<T>
accessor: ((datum, index, array) => number)
- (datum, index, array): number
Parameters
datum: T
index: number
array: Iterable<T>
Returns number
Returns number | undefined
Return the mean of an array of numbers