Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fdll

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fdll

Fast doubly linked lists

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fdll

Fast Doubly Linked List

Lists contains object with two properties: key and data. A list cannot contain two elements with same key. All operations are done in constant time. Lists have the following methods:

  • push({key: key, data: data}) adds an element next to the list head. The new length of the list is returned.
  • pop() removes the tail of the list and return {key: key, data: data}; if list is empty, null is returned.
  • unshift({key: key, data: data}) adds an element before the list tail. The new length of the list is returned.
  • shift() removes the head of the list and return {key: key, data: data}; if the list is empty, null is returned.
  • remove(key) removes the element which as the key if it exists and return {key: key, data: data}; if is does not exist, null is returned.

FAQs

Package last updated on 24 Feb 2015

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc