Skip to content

Documentation / @ripl/utilities / numberMaxOf

Function: numberMaxOf() ​

numberMaxOf<TValue>(values, accessor): number

Defined in: packages/utilities/src/number.ts:44

Returns the maximum numeric value extracted from an array via the accessor (-Infinity when empty).

Type Parameters ​

Type Parameter
TValue

Parameters ​

ParameterType
valuesTValue[]
accessor(value) => number

Returns ​

number