arraydeletenocase

Deletes specified object from given array, in case of a string the case of the string does not matter.

arraydeletenocase( array, value [, scope ] )

Returns: Boolean

Argument Description
array
array, required

The array to delete from

value
object, required

The value to delete

scope
string, optional

one: replaces the first occurrence (default) all: replaces all occurrences

Examples

arr=['lucee','SUSI'];
	writeDump(var=arr,label="Before");
	arr.DeleteNoCase('suSi');
	writeDump(var=arr,label="After");//lucee
//Member Function with scope
	arrNew=['a','Ab','c','A','a'];
	writeDump(var=arrNew,label="Before");
	arrNew.DeleteNoCase('a',"all");
	writeDump(var=arrNew,label="After");

See also