Skip to main content

$arraySlice

Returns a new array containing a copy of a portion of the original array.

Parameters

ParameterDescription
nameName of the array
indexNumber of elements to remove from the array

Example

<AoiClient>.addCommand({
name: "array",
code: `
$createArray[data;1;4;5;6;7;8;9;0]
$let[slice;$arraySlice[data;5]]
$print[$get[slice]]
`,
});