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

Member Function Syntax


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

arrayDeleteNoCase Argument Reference

array array

value any

A value for which to search. Case insensitive.

Examples sample code invoking the arrayDeleteNoCase function

Deletes the first apple element from the array arr.

arr = ['apple', 'orange', 'pear', 'Apple'];
arrayDeleteNoCase(arr, 'Apple');


Expected Result: ['orange','pear','Apple']

Fork me on GitHub