function
Source: index.ts ↗
bucketSetTotals()
Gets a new bucket that ‘inherits’ all data from the provided bucket but has different totals.
export declare function bucketSetTotals(bucket: IBucket, totals?: ITotal[]): IBucket;
Parameters
Parameter | Type | Description |
|---|---|---|
bucket | bucket to work with | |
totals | ITotal[] | (Optional) new totals to apply |
Returns
new bucket
Remarks
New totals will be used in the new bucket as-is, no merging with existing totals.