Description
Used to filter the elements of an array.
Returns
A new array
Category
Closure functions
Syntax
arrayFilter(array,function(arrayElement){return true|false;});
Example
<cfscript> |
See also
Other closure functions.
History
ColdFusion 10: Added this function.
Parameters
Parameter |
Description |
---|---|
array |
Name of the array object. |
function |
Inline function executed for each element in the array. Returns true if the array element has to be included in the resultant array. |
arrayElement |
Array element being accessed.
|