Skip to main content

array.remove(index)

Returns and removes an array item at a specified index

Availability

Device + Agent

Parameters

Name Type Description
index Integer The index of the array item to be removed

Returns

Any Squirrel data type

Description

This method removes the item at the index passed as its parameter and then returns it. The returned value may be of any Squirrel data type.

Example Code