function
Source: bucketArray.ts ↗
bucketsReduceItem()
Creates a new array of buckets, each bucket in the array contains modified bucket items
export declare function bucketsReduceItem(buckets: IBucket[], reducer?: BucketItemReducer): IBucket[];
Parameters
Parameter | Type | Description |
|---|---|---|
buckets | IBucket[] | an array of buckets, array is applied the modification function |
reducer | (Optional) the reducer to apply to the bucket items array |
Returns
IBucket[]
a new array of buckets, each bucket in the array contains modified bucket items