Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aminnairi/javascript-linked-list
https://github.com/aminnairi/javascript-linked-list
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/aminnairi/javascript-linked-list
- Owner: aminnairi
- License: mit
- Created: 2021-05-09T13:44:02.000Z (over 3 years ago)
- Default Branch: next
- Last Pushed: 2021-05-09T15:36:39.000Z (over 3 years ago)
- Last Synced: 2024-11-06T11:21:06.313Z (10 days ago)
- Language: JavaScript
- Size: 62.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# @aminnairi/linked-list
[![Test](https://github.com/aminnairi/javascript-linked-list/actions/workflows/test.yaml/badge.svg)](https://github.com/aminnairi/javascript-linked-list/actions/workflows/test.yaml)
## Requirements
- Node
## Installation
```console
$ npm install @aminnairi/linked-list
```## Usage
```javascript
"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]"
```