JSPM

@aminnairi/linked-list

0.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q37050F
  • License MIT

Linked List without any side-effects

Package Exports

  • @aminnairi/linked-list

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aminnairi/linked-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@aminnairi/linked-list

Test

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]"