js-stacks

1.2.1 • Public • Published

Stack

Javascript Implementation of Stack

Installation & Usage :

 
npm install js-stacks
 
const Stack = require('js-stacks');
 
let stack = new Stack();
 
stack.push(1); // Push 1 to the stack
stack.pop(); // Pop 1 from the stack
stack.size; // Gives you length of the stack

Package Sidebar

Install

npm i js-stacks

Weekly Downloads

2

Version

1.2.1

License

MIT

Unpacked Size

4.55 kB

Total Files

5

Last publish

Collaborators

  • kumar_gaurav_mishra