Array.delete

Array.delete

Array.delete

Function

Delete the element at the specified index.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
indexIntNo-1The index to delete.

Return value

TypeDescription
BoolReturns true if the deletion is successful; returns false if the subscript is invalid.

Example

Notes

  • This method will modify the original array.