@newdash/newdash
Version:
javascript/typescript utility library
17 lines (16 loc) • 311 B
TypeScript
/**
* Computes the mean of the values in `array`.
*
* @since 5.11.0
* @category Math
* @param array The array to iterate over.
* @returns Returns the mean.
* @example
*
* ```js
* mean([4, 2, 8, 6])
* // => 5
* ```
*/
export declare function mean(array: Array<number>): number;
export default mean;