Skip to content

$arraySplice

$arraySplice will splice elements from the array.

Usage

$arraySplice[name;index;amount;...elements]

Parameters

FieldTypeDescriptionRequired
namestringArray name.true
indexnumberIndex of the element.true
amountnumberAmount to splice.true
…elementsstringElements to splice.true

Example(s)

1
client.command({
2
name: "array-splice",
3
code: `
4
$arraySplice[array;2;3]
5
$createArray[array;aoi.js;akarui;documents;bot]
6
`
7
});