Removes duplicate values (if they exist) in a list.
listRemoveDuplicates(list[, delimiter] [, ignoreCase])
→ returns string
,
false
Basic usage. Optional arguments left as defaults.
listRemoveDuplicates("one,two,three,four,five,one,five,three")
Expected Result: one,two,three,four,five
Optional arguments being set. Ignore case set to true
listRemoveDuplicates("one,two,three,four,five,ONE,TWO,THREE", ",", true)
Expected Result: one,two,three,four,five
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.