@supercharge/doubly-linked-list
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published


Doubly Linked List

Doubly Linked List data structure for JavaScript


Installation · Docs · Usage



Latest Version Monthly downloads

Follow @marcuspoehls and @superchargejs for updates!


Introduction

The @supercharge/doubly-linked-list package provides a JavaScript implementation for the Doubly Linked List data structure.

Installation

npm i @supercharge/doubly-linked-list

Resources

Quick Usage Overview

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

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


superchargejs.com  ·  GitHub @supercharge  ·  Twitter @superchargejs

Package Sidebar

Install

npm i @supercharge/doubly-linked-list

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

18.4 kB

Total Files

13

Last publish

Collaborators

  • marcuspoehls
  • peitek
  • celsiusf