# void-list

> Add Java List to Javascript

Latest version **1.1.8** (published 2024-10-17) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install void-list
pnpm add void-list
yarn add void-list
bun add void-list
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.8 |
| Published | 2024-10-17 |
| First published | 2022-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 41.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mrthomas20121 |
| Maintainers | mrthomas20121 |
| Keywords | List, Java List |

## Links

- npm: https://www.npmjs.com/package/void-list
- Repository: https://github.com/JS-Void-Packages/void-list
- Homepage: https://github.com/JS-Void-Packages/void-list#readme
- Issues: https://github.com/JS-Void-Packages/void-list/issues
- npm.io page: https://npm.io/package/void-list

## Recent versions

- 1.1.8 (latest) — 2024-10-17
- 1.1.7 — 2024-08-25
- 1.1.6 — 2024-01-31
- 1.1.5 — 2023-08-14
- 1.1.4 — 2022-12-04
- 1.1.3 — 2022-11-27
- 1.1.2 — 2022-11-24
- 1.1.1 — 2022-08-20
- 1.1.0 — 2022-08-14
- 1.0.9 — 2022-06-30
- 1.0.8 — 2022-06-28
- 1.0.7 — 2022-06-27
- 1.0.6 — 2022-01-25
- 1.0.5 — 2022-01-21
- 1.0.4 — 2022-01-20
- … 4 more at https://npm.io/package/void-list/versions

## README

# void-list
Add Java Style List to Javascript
## Instalation
`npm install void-list`
## Example
```js
// or import { List } from 'void-list'
const { List, ImmutableList } = require('void-list');

let list = new List();
list.add("Lazy");
list.add("Foxes");
list.add("Over");
list.add("Rainbow");
list.addAll('Not', 'J');

// Over
console.log(list.get(2));

// return the removed element
console.log(list.remove(2));

// Rainbow
console.log(list.get(2));

// shuffle the list
list.shuffle();
console.log(list.toString());

// get the index for Lazy
console.log(list.indexOf("Lazy"));

// create a list from an array
let l = List.fromArray(["Lazy", "Foxes", "Over", "Rainbow"]);

// non modifiable list
let immune = new ImmutableList(l);
```

---
_Source: https://npm.io/package/void-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
