https://github.com/supercharge/linked-list
https://github.com/supercharge/linked-list
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/supercharge/linked-list
- Owner: supercharge
- License: mit
- Created: 2021-12-21T15:16:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-11T14:34:07.000Z (over 4 years ago)
- Last Synced: 2025-01-09T06:28:59.828Z (over 1 year ago)
- Language: TypeScript
- Size: 16.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Linked List
Linked List data structure for JavaScript
Installation ·
Docs ·
Usage
Follow @marcuspoehls and @superchargejs for updates!
---
## Introduction
The `@supercharge/linked-list` package provides a JavaScript implementation for the Linked List data structure.
## Installation
```
npm i @supercharge/linked-list
```
## Resources
- [Documentation](https://superchargejs.com/docs/linked-list)
## Quick Usage Overview
Using `@supercharge/linked-list` is pretty straightforward. The package exports a `LinkedList` class providing all methods to interact with the instance.
```js
const { LinkedList } = require('@supercharge/linked-list')
const linkedList = new LinkedList()
linkedList.isEmpty() // true
linkedList.push(1)
linkedList.isNotEmpty() // true
```
## Contributing
Do you miss a function? We very much appreciate your contribution! Please send in a pull request 😊
1. Create a fork
2. Create your feature branch: `git checkout -b my-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request 🚀
## License
MIT © [Supercharge](https://superchargejs.com)
---
> [superchargejs.com](https://superchargejs.com) ·
> GitHub [@supercharge](https://github.com/supercharge) ·
> Twitter [@superchargejs](https://twitter.com/superchargejs)