PHP2Go Javascript Framework

Class Array

Object
   |
   +--Collection
         |
         +--Array

class Array
extends Collection

Defined in structures.js


Field Summary
 Object accept
          
   
Method Summary
 Array clear()
           Removes all elements in the array and return the new empty array
 Array clone()
           Creates a clone of the array
 Array concat()
           Creates a new array containing the array's elements followed by all provided arguments.
 <private>  void each(iterator)
           Private method that iterates over the elements of the array.
 Boolean empty()
           Verifies if the array is empty
 Object first()
           Returns the first element of the array
 Array include(<Object> item)
           Includes the passed element in the array, only if not already present
 Number indexOf(<Object> obj, <Number> idx)
           Searches for a given object inside the array.
 Object last()
           Returns the first element of the array
 Number lastIndexOf(<Object> obj, <Number> idx)
           Returns the index of the last occurrence of an object inside the array, or -1 if not found
 Array remove(<Object> item)
           Removes all occurrences of an item from the array
 String serialize()
           Dumps the array contents as string
<static> Object valueOf(<Object> iterable)
           Builds an Array object based on an iterable value.
 
Methods inherited from class Collection
some, every, accept, reject, valid, grep, contains, extract, inject, invoke, map, walk
 

Field Detail

accept

Object accept


Method Detail

clear

Array clear()

clone

Array clone()

concat

Array concat()

each

 <private> void each(iterator)

empty

Boolean empty()

first

Object first()

include

Array include(<Object> item)

indexOf

Number indexOf(<Object> obj, <Number> idx)

last

Object last()

lastIndexOf

Number lastIndexOf(<Object> obj, <Number> idx)

remove

Array remove(<Object> item)

serialize

String serialize()

valueOf

<static> Object valueOf(<Object> iterable)

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007