Creates a new bucket by modifying items of the provided input bucket.
export declare function bucketModifyItems(bucket: IBucket, modifications?: BucketItemModifications): IBucket;
|bucket||IBucket||bucket in which all items are applied the modification function|
|modifications||BucketItemModifications||(Optional) the modification to apply to the bucket items|
new instance of bucket with modified bucket items
Each item from the input bucket will be dispatched to the modification function and the result of the modification will be included in the new bucket.
Note: it is valid for the modification function to just return the original item. In that case the item will be included in the bucket without modification.