@ali-fathi77/stackv1
v1.1.0
Published
This is my first stack module
Downloads
7
Readme
My first stack module
In this version of this module you can push and pop your data on stack. You can also know how many array houses are occupied.
Photo copied from the https://www.javatpoint.com/ds-stack-vs-queue
Features of this version
Pushing data Popping data Information about array houses
Installation
My stack module requires Node.js v16+ to run.
Install the dependencies and devDependencies and start the server.
npm install stackv1
For production environments...
npm install stackv1 --production
Usage
This is sample usage of this module:
const newStack = new stack()
newStack.push(your data)
newStack.pop()
You can also know how many array houses are occupied.
newStack.length()