doubly-linked-list 1.0.0
Install from the command line:
Learn more about npm packages
$ npm install @supercharge/doubly-linked-list@1.0.0
Install via package.json:
"@supercharge/doubly-linked-list": "1.0.0"
About this version
Doubly Linked List data structure for JavaScript
Installation · Docs · Usage
Follow @marcuspoehls and @superchargejs for updates!
The @supercharge/doubly-linked-list
package provides a JavaScript implementation for the Doubly Linked List data structure.
npm i @supercharge/doubly-linked-list
Using @supercharge/doubly-linked-list
is pretty straightforward. The package exports a LinkedList
class providing all methods to interact with the instance.
const { DoublyLinkedList } = require('@supercharge/doubly-linked-list')
const list = new DoublyLinkedList()
list.isEmpty() // true
list.push(1, 2)
list.isNotEmpty() // true
list.head().value() // 1
list.tail().value() // 2
list.tail().prev().value() // 1
Do 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
Details
- doubly-linked-list
- supercharge
- almost 3 years ago
- MIT
- 7 dependencies
Assets
- doubly-linked-list-1.0.0-npm.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0