arrayFindLast

Returns the index of the last element that matches a value, or the last element for which a callback returns true. Returns 0 if nothing matches.

arrayFindLast(array, value) → returns numeric

Member Function Syntax

someArray.findLast(value)

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

Argument Reference

array array
Required

The array to search.

value any
Required

A value to match, or a function that receives each element and returns true for a match.

Examples
Sample code invoking the arrayFindLast function

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

Fork me on GitHub