1.0.0 • Published 6 years ago

street-stack v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

Build Status

street-stack

$ npm i street-stack
const Stack = require('stack-stack');
const stack = new Stack();

How to use

stack.push()  

//adds a new element onto the top of the stack

stack.pop()

//removes the element from the top of the stack

stack.peek()

//returns the element from the top of the stack

stack.isEmpty()

//returns true if stack is empty, false otherwise