array.deleteAt()
Deletes an element from an array and resizes the array so that the deleted element doesn't leave a gap.
array.deleteAt( position=number )
Returns: Array
Argument | Description |
---|---|
position
number,
required
|
The numeric position of the element. Remember that CFML arrays start at 1 not 0. Alias: index |
Examples
fruits = ["apple","orange","BANANA","banana","orange","Banana","Orange"];
writeDump(fruits.deleteat(3));
writeDump(fruits.deleteat(6));