Skip to content

@vtj


@vtj / base / avg

Function: avg()

avg<T>(list, field?): number

求平均值

Type Parameters

T = any

Parameters

list

T[] = []

field?

keyof T

Returns

number

Defined in

packages/base/src/data.ts:212

Released under the MIT License.