Easy-List: Simple Doubly Linked-List implementation
Because I found out JavaScript didn't have linked lists...
Getting Started
ES6 is required.
Installation
npm install easy-list@latest
Importing
Supports both Typescript and Javascript
Typescript importing
import { easyLinkedList } from 'easylinkedlist'
const list = new easyLinkedList<Number>();
CommonJS importing
const { easyLinkedList } = require('easylinkedlist');
const list = new easyLinkedList();
Basic Usage
list.push(1).push(2).push(3).push(4);
list.pop();
list.shift();
list.unshift(1).unshift(0);
list.isEmpty();
list.set(1, 4);