new Stack()
Members
myStack :Object.<string, i>
Type:
- Object.<string, i>
Methods
clear()
Clears the current stack
contains()
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
find()
isEmpty()
matches()
whether the testStack matches the calling stack
mergeWith()
peek()
pop()
push()
reverseCopy()
size()
sortDelete()
Deletes a specific item then sorts the stack back to order
Very useful utility function for special cases
Can be expensive, O(n)