Packageorg.spicefactory.lib.util
Classpublic class ArrayUtil
InheritanceArrayUtil Inheritance Object

Static utility methods for Arrays.



Public Methods
 MethodDefined By
  
contains(arr:Array, element:*):Boolean
Deprecated: Please Use Array.indexOf
[static]
ArrayUtil
  
indexOf(arr:Array, element:*):int
Deprecated: Please Use Array.indexOf
[static]
ArrayUtil
  
lastIndexOf(arr:Array, element:*):int
Deprecated: Please Use Array.lastIndexOf
[static]
ArrayUtil
  
remove(arr:Array, element:*):Boolean
[static] Removes the specified instance from the Array.
ArrayUtil
Method Detail
contains()method
public static function contains(arr:Array, element:*):Boolean
Deprecated: Please Use Array.indexOf

Parameters

arr:Array
 
element:*

Returns
Boolean
indexOf()method 
public static function indexOf(arr:Array, element:*):int
Deprecated: Please Use Array.indexOf

Parameters

arr:Array
 
element:*

Returns
int
lastIndexOf()method 
public static function lastIndexOf(arr:Array, element:*):int
Deprecated: Please Use Array.lastIndexOf

Parameters

arr:Array
 
element:*

Returns
int
remove()method 
public static function remove(arr:Array, element:*):Boolean

Removes the specified instance from the Array.

Parameters

arr:Array — the Array to remove the element from
 
element:* — the element to remove

Returns
Boolean — true if the Array contained the specified element