ArraySplice
Modifies an array by removing elements and adding new elements.
It starts from the index, removes as many elements as specified by elementCountForRemoval, and puts the replacements starting from index position.
Method Signature
Arguments
Argument
Type
Required
Description
Default
array
modifiablearray
true
The array to splice
index
Integer
true
The initial position to remove or insert from
elementCountForRemoval
Integer
false
The number of elemetns to remove
0
replacements
array
false
An array of elements to insert
Examples
Related
Last updated