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