collectionReduce
4

Overview ColdFusion Open BlueDragon Lucee

Iterates over every entry of the collection and calls the closure with every element. This function will reduce the array to a single value and will return the value.

Attributes

Name Required Type Default Description
4
closure No function/closure that implements the following constructor [function(... depending on the given collection ...):any].
4
collection No collection to iterate
4
initalValue No inital value passed as part of the first closure call