Packagenet.user1.utils
Classpublic class ArrayUtil
InheritanceArrayUtil Inheritance Object

Since : Reactor 1.0.0

Utilities for working with Arrays.



Public Methods
 MethodDefined By
  
combine(... arrays):Array
[static] Combines the contents of multiple arrays into a new array, such that the new array contains all values present in all the specified arrays, with no duplicate values.
ArrayUtil
  
remove(array:Array, item:Object):Boolean
[static] Removes the specified object from the provided Array object.
ArrayUtil
Method Descriptions
combine()method
public static function combine(... arrays):Array

Combines the contents of multiple arrays into a new array, such that the new array contains all values present in all the specified arrays, with no duplicate values. For example,

     var a1:Array = [1,2,3,3,4];
     var a2:Array = [3,4,5];
     
     // Output: [1,2,3,4,5]
     trace(ArrayUtil.combine(a1,a2));
     

Parameters

... arrays — A list of arrays to combine. If an array of arrays is provided as the only argument, that array's elements are combined into a new array.

Returns
Array
remove()method 
public static function remove(array:Array, item:Object):Boolean

Since : Reactor 1.0.0

Removes the specified object from the provided Array object.

Parameters

array:Array
 
item:Object

Returns
Boolean — true if the object was removed, false if not.