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=[numeric], elementCountForRemoval=[numeric], replacements=[array])

Arguments

ArgumentTypeRequiredDescriptionDefault

array

modifiablearray

true

The array to splice

index

numeric

true

The initial position to remove or insert from

elementCountForRemoval

numeric

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