Monster.Types. Stack

You can call the method via the monster namespace new Monster.Types.Queue().

Constructor

new Stack()

Since
  • 1.4.0
License
  • AGPLv3

Members

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Since
  • 2.1.0

Methods

clear() → {Queue}

remove all entries

.

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.

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.

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.

pushes an item onto the top of this stack.

Parameters:
NameTypeDescription
value*
Returns:
Type: 
Queue