Contains utility methods for working with Array objects.
public static function clone(array:Array):Array
Clones an array.
Parameters
| array:Array — the array to clone
|
Returns
| Array — a clone of the passed-in { |
public static function isSame(array1:Array, array2:Array):Boolean
Compares the two arrays {
Parameters
| array1:Array — the first array for the comparison
|
| |
| array2:Array — the second array for the comparison
|
Returns
public static function removeFirstOccurance(array:Array, item:*):Number
Removes the first occurance of the given {
Parameters
| array:Array — the array to remove the item out of
|
| |
| item:* — the item to remove
|
Returns
public static function removeItem(array:Array, item:*):Array
Removes all occurances of a the given {
Parameters
| array:Array — the array to remove the item out of
|
| |
| item:* — the item to remove
|
Returns
| Array — List that contains the index of all removed occurances
|
public static function removeLastOccurance(array:Array, item:*):Number
Removes the last occurance of the given {
Parameters
| array:Array — the array to remove the item out of
|
| |
| item:* — the item to remove
|
Returns
public static function shuffle(array:Array):void
Shuffles the items of the given {
Parameters
| array:Array — the array to shuffle
|
Prana Framework 0.5 - 2008