@aminnairi/linked-list
v0.4.0
Published
Linked List without any side-effects
Downloads
14
Maintainers
Readme
@aminnairi/linked-list
Requirements
- Node
Installation
$ npm install @aminnairi/linked-list
Usage
"use strict";
const {linkedList} = require("@aminnairi/linked-list");
const myLinkedList = linkedList(2).addFirst(1).addFirst(0).removeFirst();
console.log(Array.from(myLinkedList));
// [1, 2]
console.log(JSON.stringify(myLinkedList));
// "[1,2]"