arrayRemoveDuplicates

Returns a new array with duplicate values removed, keeping the first occurrence of each.

arrayRemoveDuplicates(array [, ignoreCase]) → returns array

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

Argument Reference

array array
Required

The array to remove duplicates from.

ignoreCase boolean

When true, values that differ only in case count as duplicates.

Examples
Sample code invoking the arrayRemoveDuplicates function

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

Fork me on GitHub