@loupthibault/linkedlist

0.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @loupthibault/linkedlist

Weekly Downloads

34

Version

0.1.3

License

MIT

Unpacked Size

8.55 kB

Total Files

7

Last publish

Collaborators

  • loupthibault