Socket
Socket
Sign inDemoInstall

doublell

Package Overview
Dependencies
0
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

doublell


Version published
Maintainers
0
Created

Readme

Source

doublell

Downloads Size

A very minimal Double Linked List implementation for browsers and Node.

Usage Examples

const list = new DoubleLinkedList<number>();
const node1 = list.append(1);
const node2 = list.prepend(2);
console.log(list.getLength());
console.log(list.getHead()?.value);
console.log(list.getTail()?.value);
console.log(node2.nextNode?.value);
console.log(node1.previousNode?.value);
list.remove(node2);
list.clear();

API Docs

Thanks

Thanks for checking it out. Feel free to create issues or otherwise provide feedback.

Be sure to check out our other TypeScript OSS projects as well.

Keywords

FAQs

Last updated on 28 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc