Socket
Socket
Sign inDemoInstall

@loupthibault/linkedlist

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @loupthibault/linkedlist

Javascript Linked List


Version published
Weekly downloads
31
decreased by-6.06%
Maintainers
1
Install size
9.27 kB
Created
Weekly downloads
 

Readme

Source

Linked List

A Javascript Linked List.

License: MIT

Getting started

Install

npm i @loupthibault/linkedlist

Usage

import LinkedList from '@loupthibault/linkedlist';

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

// Add values to linked list
[0, 1, 2, 3, 4, 5].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) 2021, Loup-Rodolphe THIBAULT.

FAQs

Last updated on 29 Jan 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc