Methods
clear() → {Queue}
- Source:
remove all entries
Returns:
- Type
- Queue
isEmpty() → {boolean}
- Source:
Returns:
- Type
- boolean
peek() → {*}
- Source:
looks at the object at the top of this stack without removing it from the stack.
Returns:
- Type
- *
pop() → {*}
- Source:
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}
- Source:
pushes an item onto the top of this stack.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
Returns:
- Type
- Queue