1.0.2 • Published 6 years ago

ds4js v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

ds4js

NPM package for data structure

command to Install :

npm install ds4js --save

Data Structure:

  • Stack

Example:

const dataStructure = require('ds4js');

var stack = dataStructure.stack();

stack.push("hello");
var element = stack.peek(); // hello
var length = stack.length(); // 1
var isEmpty = stack.isEmpty(); // false
var element = stack.pop(); // hello
var length = stack.length(); // 0
var isEmpty = stack.isEmpty(); // true
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago