stack-op

1.0.2 • Public • Published

Stack ADT

Install

npm install stack-op

Operations -
  1. Create
  2. Push
  3. Pop
  4. Peek
  5. Get Size

How to use

var Stack = require('stack-op');
Create
var stack = Stack.createStack();
Push

stack.push(10);

Pop

var item = stack.pop();

Peek

var item = stack.peek();

Get Size

var size = stack.getSize();

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i stack-op

      Weekly Downloads

      1

      Version

      1.0.2

      License

      ISC

      Last publish

      Collaborators

      • vpage