array.deleteNoCase()

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

array.deleteNoCase( value=object, scope=string )

Returns: Array

Argument Description
value
object, required

The value to delete

scope
string, optional

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

Examples

array = ["one","two","THREE","three","four","five","Five"];
writeDump(array.deletenocase("three"));
writeDump(array.deletenocase("THREE"));
writeDump(array.deletenocase("FIVE"));

See also