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

ArraySplice(array=[modifiablearray], index=[Integer], elementCountForRemoval=[Integer], replacements=[array])

Arguments

ArgumentTypeRequiredDescriptionDefault

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

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC