Skip to content

@vtj


@vtj / node / avg

Function: avg()

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

求平均值

Type Parameters

T = any

Parameters

list?

T[]

field?

keyof T

Returns

number

Defined in

packages/base/types/data.d.ts:84

Released under the MIT License.