Constructordojox.collections.ArrayList

dojo.require("dojox.collections.ArrayList");
defined in dojox/collections/ArrayList.js

Returns a new object of type dojox.collections.ArrayList

Usage

function (/*Array?*/ arr) (view source)
parametertypedescription
arrArrayOptional.

Jump to PropertiesFunctionsBack to top

Functionadd(obj: Object)
Add an element to the collection.
Add a range of objects to the ArrayList
Clear all elements out of the collection, and reset the count.
Clone the array list
Check to see if the passed object is a member in the ArrayList
FunctionforEach(fn: Function, scope: Object?)
functional iterator, following the mozilla spec.
Get an Iterator for this object
Return the numeric index of the passed object; will return -1 if not found.
Functioninsert(i: Integer, obj: Object)
Insert the passed object at index i
return the element at index i
Functionremove(obj: Object)
Look for the passed object, and if found, remove it from the internal array.
return an array with function applied to all elements
Reverse the internal array
Set an element in the array by the passed index.
Functionsort(fn: Function?)
sort the internal array
Return a new array with all of the items of the internal array concatenated.
FunctiontoString(delim: String)
implementation of toString, follows [].toString();

Jump to FunctionsPropertiesBack to top