githubEdit

ArrayDeleteAt

Delete item at specified index in array

Method Signature

ArrayDeleteAt(array=[modifiableArray], index=[integer])

Arguments

Argument
Type
Required
Description
Default

array

modifiableArray

true

The array to be deleted from.

index

integer

true

The index to deleted.

Examples

Simple example for arrayDeleteAt function

Uses the arrayDeleteAt function to delete the value in specific position

Run Examplearrow-up-right

someArray = [ 
	"Red",
	"White",
	"Green",
	"Blue",
	"Pink"
];
arrayDeleteAt( someArray, 3 );
writeOutput( JSONSerialize( someArray ) );

Result: ["Red", "White", "Blue", "Pink"]

Simple example with member function

Uses the member function is the same as running arrayDeleteAt.

Run Examplearrow-up-right

Result: ["Red", "Green", "Blue", "Pink"]

Additional Examples

Run Examplearrow-up-right

Run Examplearrow-up-right

Last updated

Was this helpful?