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

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i js-stacks

    Weekly Downloads

    12

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    4.55 kB

    Total Files

    5

    Last publish

    Collaborators

    • kumar_gaurav_mishra