ArraySplice
Method Signature
ArraySplice(array=[modifiablearray], index=[Integer], elementCountForRemoval=[Integer], replacements=[array])Arguments
Argument
Type
Required
Description
Default
Examples
arraySplice inserting replacements at position 2 while removing 0 elements
months = [
"Jan",
"March",
"April",
"June"
];
item = [
"Feb"
];
arraySplice( months, 2, 0, item );
writedump( months );
arraySplice inserting replacements at position 3 while removing 2 elements
arraySplice inserting replacements at position -3 while removing 0 elements
arraySplice inserting replacements at position 5 which is greater than the length of the array
Splice an array using member function
Additional Examples
Related
Last updated
Was this helpful?
