7.0.2 • Published 3 years ago

@walkerrandolphsmith/stack v7.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Stack

|_|
|_|
|_|

Stacks allow use to store elements in an ordered manner that is used to enforce the access of elements.

isEmpty() Determine if there are any elements in the stack.

peek() Retrieve the element on top of the stack without removing it from the stack.

pop() Retrieve the element on top of the stack and remove it from the stack.

push(element) Add an element to the top of the stack.