Aggregate
The Aggregate
type describes a custom function that takes an array of Cell
values and returns an aggregate of them.
(
cells: Cell[],
length: number,
): ResultCell
Type | Description | |
---|---|---|
cells | Cell[] | The array of |
length | number | The length of the array of |
returns | ResultCell | The value of the aggregation. |
There are a number of common predefined aggregators, such as for counting, summing, and averaging values. This type is instead used for when you wish to use a more complex aggregation of your own devising.
Since
v2.0.0