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 ​
| Parameter | Type |
|---|---|
values | TValue[] |
accessor | (value) => number |
Returns ​
number