setFilter

Returns a new set containing the elements for which the callback returns true.

setFilter(set, callback) → returns any

Member Function Syntax

mySet.filter(callback)

This function requires Adobe ColdFusion 2025.0.8 and up.  Not supported on Lucee, etc.

Argument Reference

set any
Required

The set.

callback function
Required

Function that receives each element and returns true to keep it.

Links more information about setFilter

Examples
Sample code invoking the setFilter function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub