0.1.3 • Published 3 years ago

@loupthibault/linkedlist v0.1.3

Weekly downloads
39
License
MIT
Repository
-
Last release
3 years ago

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.

0.1.3

3 years ago

0.1.2

4 years ago

0.1.0

5 years ago