Description
Iterates over every entry of the Struct and calls the closure function to work on the key value pair of the struct. The returned value will be set for the same key in a new struct and the new struct will be returned.
Returns
Struct
Syntax
StructMap(struct, function(key, value [,struct])) |
History
ColdFusion 11: Added this function.
Attributes
Attribute |
Req/Opt |
Default |
Description |
---|---|---|---|
struct | Required | The input struct. | |
function | Required | Closure or a function reference that will be called for each of the iteration. The arguments passed to the callback are
|