Deletes the first element in an array that matches the value of value
. The search is case insensitive. Returns true
if the element was found and removed. The array will be resized, so that the deleted element doesn't leave a gap.
arrayDeleteNoCase(array, value)
→ returns boolean
someArray.deleteNoCase(value)
one
one
all
Deletes the first apple
element from the array arr
.
arr = ['apple', 'orange', 'pear', 'Apple'];
arrayDeleteNoCase(arr, 'Apple');
writeDump(arr);
Expected Result: ['orange','pear','Apple']
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.