Documentation / @ripl/core / getExtent
Function: getExtent()
getExtent<
TValue>(values,accessor): [number,number]
Defined in: packages/core/src/math/number.ts:36
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]