@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.310latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.310
0.1.20
0.1.024

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