node-structures
![Code Climate](https://codeclimate.com/github/AlbertHambardzumyan/node-structures/badges/gpa.svg)
Basic Data Structures for use in JavaScript (server-side, client side)
Description
The Library provides the following Data Structure Implementations
- Stack
Installation
Server-side:
npm install node-structures
Client-side:
bower install node-structures
Usage
###Stack
const Stack = require('node-structures').Stack;
let stack = new Stack();
stack.isEmpty();
stack.push(3);
stack.peek();
stack.pop();
stack.size();
###Queue
const Queue = require('node-structures').Queue;
let queue = new Queue();
queue.isEmpty();
queue.add(3);
queue.remove();
queue.poll();
queue.peek();
License
MIT