Stack

push(any): void

Pushes any item into stack.

peek(): any

Gets the last added item from stack, throws error when empty.

pop(): any

Gets and removes the last added item from stack, throws error when empty.

results matching ""

    No results matching ""