array.delete()
Deletes specified object from given array
array.delete( 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.delete("three"));
writeDump(array.delete("THREE"));
writeDump(array.delete("FIVE"));
writeDump(array.delete("six"));