0.0.1 • Published 8 years ago

party-stack v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Tests

Stack

Stack implementation in JavaScript

How to develop

git clone git@github.com:yomanmf/stack.git
cd stack
npm install

How to run tests

npm test

API

//Initialization
const stack = new Stack();
const Stack = require('stack');

stack.push(100500) // returns 100500

stack.pop() // removes the first element and returns its' value

stack.peek() // returns first element

stack.isEmpty() // returns  true|false in case if there is an element in stack

Current status