Documentation / @ripl/utilities / numberExtent
Function: numberExtent() ​
numberExtent<
TValue>(values,accessor): [number,number]
Defined in: packages/utilities/src/number.ts:54
Computes the [min, max] extent of an array using the given numeric accessor.
Type Parameters ​
| Type Parameter |
|---|
TValue |
Parameters ​
| Parameter | Type |
|---|---|
values | TValue[] |
accessor | (value) => number |
Returns ​
[number, number]