bucketsReduceItem()
Home > @gooddata/sdk-model > bucketsReduceItem
bucketsReduceItem() function
Creates a new array of buckets, each bucket in the array contains modified bucket items
Signature:
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