1.0.0 • Published 8 years ago
street-stack v1.0.0
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
1.0.0
8 years ago