Description
Used to filter the key value pairs in a struct.
Returns
A new struct
Category
Closure functions
Syntax
structFilter(struct,function(key, value){return true|false;});
See also
Other closure functions.
History
ColdFusion 10: Added this function.
Parameters
Parameter |
Description |
---|---|
struct |
Name of the struct object. |
function |
Inline function executed for each element in the array. Returns true if the key value pair in the struct has to be included in the resultant struct. |
key |
Key in a struct. |
value |
Value in a struct.
|