@walkerrandolphsmith/stack

7.0.2 • Public • Published

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.

Package Sidebar

Install

npm i @walkerrandolphsmith/stack

Weekly Downloads

1

Version

7.0.2

License

ISC

Unpacked Size

3.21 kB

Total Files

5

Last publish

Collaborators

  • walkerrandolphsmith