Class: Stack

Stack()

Members

myStack :Object.<string, i>

Type:
  • Object.<string, i>
Source:

Methods

clear()

Clears the current stack
Source:

contains()

Source:

copy()

Create a shallow copy of a stack of this type REMEMBER, stack object copied, but any values stored by reference (objects or instances) not copied. Thus, still point to original. Shallow copy
Source:

find()

Source:

isEmpty()

Source:

matches()

whether the testStack matches the calling stack
Source:

mergeWith()

Source:

peek()

Source:

pop()

Source:

push()

Source:

reverseCopy()

Source:

size()

Source:

sortDelete()

Deletes a specific item then sorts the stack back to order Very useful utility function for special cases Can be expensive, O(n)
Source: