Skip to content

Documentation / @ripl/core / getTotal

Function: getTotal() ​

getTotal<TValue>(values, accessor): number

Defined in: packages/core/src/math/number.ts:54

Sums all numeric values extracted from an array via the accessor.

Type Parameters ​

Type Parameter
TValue

Parameters ​

ParameterType
valuesTValue[]
accessor(value) => number

Returns ​

number