Methods
# clear() → {Queue}
remove all entries
Returns:
- Type
- Queue
# isEmpty() → {boolean}
Returns:
- Type
- boolean
# peek() → {*}
looks at the object at the top of this stack without removing it from the stack.
Returns:
- Type
- *
# pop() → {*}
removes the object at the top of this stack and returns that object as the value of this function. is the stack empty the return value is undefined.
Returns:
- Type
- *
# push(value) → {Queue}
pushes an item onto the top of this stack.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
Returns:
- Type
- Queue