# js-data-structure-library

> A JavaScript Data Structure Library

Latest version **1.0.0** (published 2020-11-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install js-data-structure-library
pnpm add js-data-structure-library
yarn add js-data-structure-library
bun add js-data-structure-library
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-11-30 |
| First published | 2020-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jerry |
| Maintainers | liguoqing-jerry |
| Keywords | data-structure |

## Links

- npm: https://www.npmjs.com/package/js-data-structure-library
- Repository: https://github.com/liguoqing-jerry/js-data-structure-library
- Homepage: https://github.com/liguoqing-jerry/js-data-structure-library#readme
- Issues: https://github.com/liguoqing-jerry/js-data-structure-library/issues
- npm.io page: https://npm.io/package/js-data-structure-library

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^4.1.2

## Recent versions

- 1.0.0 (latest) — 2020-11-30

## README

# js-data-structure-library

## Stack
### methods
- push: add an element to the end of this stack
- pop: delete an element from the end of this stack
- peek: return the front element of this stack
- isEmpty: return this stack is empty or not
- clear: clear all elements of this stack
- size: return length of this stack
- toString: to show elements of this stack

### How to use?
you can use Stack like this:
```ts
const stack = new Stack<number>()
stack.push(1)
stack.push(2)
stack.pop()
stack.peek() // 1
stack.isEmpty() // false
stack.size() // 1
stack.clear()
stack.size() // 0
```

---
_Source: https://npm.io/package/js-data-structure-library · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
