Constructordojox.collections.Stack

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

Usage

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

Jump to PropertiesFunctionsBack to top

Clear the internal array and reset the count
Create and return a clone of this Stack
check to see if the stack contains object o
FunctioncopyTo(arr: Array, i: Integer)
copy the stack into array arr at index i
FunctionforEach(fn: Function, scope: Object?)
functional iterator, following the mozilla spec.
get an iterator for this collection
Functionpeek()
Return the next item without altering the stack itself.
Functionpop()
pop and return the next item on the stack
Push object o onto the stack
create and return an array based on the internal collection

Jump to FunctionsPropertiesBack to top