setRemoveIf

Removes every element for which the callback returns true. Returns true if any element was removed.

setRemoveIf(set, predicate) → returns boolean

Member Function Syntax

mySet.removeIf(predicate)

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

Argument Reference

set any
Required

The set.

predicate function
Required

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

Compatibility

ColdFusion:

Version 2025.0.8+ Listed by getFunctionList() in ColdFusion 2025+. No official documentation exists.

Links more information about setRemoveIf

Examples
Sample code invoking the setRemoveIf function

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

Fork me on GitHub