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

@loupthibault/linkedlist

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loupthibault/linkedlist

Javascript Linked List

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
41
increased by7.89%
Maintainers
1
Weekly downloads
 
Created
Source

Linked List

A Javascript Linked List.

License: MIT

Getting started

Install

npm i @loupthibault/linkedlist

Usage

import LinkedList from '@loupthibault/linkedlist';


const array = [0, 1, 2, 3, 4, 5];

// Create Linkedlist
const linkedlist = new LinkedList();

// Add values to linked list
array.forEach((value) => linkedlist.push(value));

// Parse linked list
var node = linkedlist.head;

while(node) {
  console.log(node.data);
  node = node.next;
}

License

MIT.

Copyright (c) 2019-present, Loup-Rodolphe THIBAULT.

FAQs

Package last updated on 23 Jul 2019

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