Appearance
Returns the average of a number array.
import { average } from 'tsu' average([1, 2, 3, 4, 5]) // 3 average([]) // 0
/** * @param ns - The number array. * @returns The average. */ function average(ns: readonly number[]): number