Packagexp.utils
Classpublic class ArrayUtils



Public Methods
 MethodDefined by
  
insert(array1:Array, array2:Array, startIndex:int = 0, deleteCount:int = 0):Array
[static] Merges two arrays by inserting elements in one array inside the other.
ArrayUtils
  
merge(array1:Array, array2:Array):Array
[static] Merges two arrays by appending the second array to the first
ArrayUtils
Method detail
insert()method
public static function insert(array1:Array, array2:Array, startIndex:int = 0, deleteCount:int = 0):Array

Merges two arrays by inserting elements in one array inside the other. Adds elements to and removes elements from an array. This method modifies the array without making a copy.

Parameters
array1:Array — — An integer that specifies the index of the element in the array where the insertion or deletion begins. You can use a negative integer to specify a position relative to the end of the array (for example, -1 is the last element of the array).
 
array2:Array — — An integer that specifies the number of elements to be deleted. This number includes the element specified in the startIndex parameter. If you do not specify a value for the deleteCount parameter, the method deletes all of the values from the startIndex element to the last element in the array. If the value is 0, no elements are deleted.
 
startIndex:int (default = 0)
 
deleteCount:int (default = 0)

Returns
Array
merge()method 
public static function merge(array1:Array, array2:Array):Array

Merges two arrays by appending the second array to the first

Parameters
array1:Array
 
array2:Array

Returns
Array