|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Collection
|
+--Array
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 |
Object accept
| Method Detail |
Array clear()
Array clone()
Array concat()
<private> void each(iterator)
Iterator - function
Boolean empty()
Object first()
Array include(<Object> item)
item - Item to add
Number indexOf(<Object> obj, <Number> idx)
obj - Object to be searched
idx - From index
Object last()
Number lastIndexOf(<Object> obj, <Number> idx)
obj - Object to be searched
idx - From index
Array remove(<Object> item)
item - Array item
String serialize()
<static> Object valueOf(<Object> iterable)
iterable - Iterable that must be used to build the array
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||