ArrayMerge

This function creates a new array with data from the two passed arrays.

To add all the data from one array into another without creating a new array see the built in function ArrayAppend(arr1, arr2, true).

Method Signature

ArrayMerge(array1=[array], array2=[array], leaveIndex=[boolean])

Arguments

ArgumentTypeRequiredDescriptionDefault

array1

array

true

The first array to merge

array2

array

true

The second array to merge

leaveIndex

boolean

true

Set to true maintain value indexes - if two values have the same index it will keep values from array1

false

Examples

Last updated

Logo

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