Linked List data structure for JavaScript
Installation · Docs · Usage
Follow @marcuspoehls and @superchargejs for updates!
The @supercharge/linked-list package provides a JavaScript implementation for the Linked List data structure.
npm i @supercharge/linked-list
Using @supercharge/linked-list is pretty straightforward. The package exports a LinkedList class providing all methods to interact with the instance.
const { LinkedList } = require('@supercharge/linked-list')
const linkedList = new LinkedList()
linkedList.isEmpty() // true
linkedList.push(1)
linkedList.isNotEmpty() // trueDo you miss a function? We very much appreciate your contribution! Please send in a pull request 😊
- Create a fork
- Create your feature branch:
git checkout -b my-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request 🚀
MIT © Supercharge
superchargejs.com · GitHub @supercharge · Twitter @superchargejs