An open API service indexing awesome lists of open source software.

https://github.com/streamich/pure-arr

Immutable pure Array.prototype functions
https://github.com/streamich/pure-arr

Last synced: 11 months ago
JSON representation

Immutable pure Array.prototype functions

Awesome Lists containing this project

README

          

# pure-arr

Pure, immutable equivalents of `Array.prototype`.

```js
import {push} from 'pure-arr';

const a = push([1, 2], 3);
// 👉 [1, 2, 3]
```

- Implements all `Array.prototype` methods.
- First argument is always an array.
- Does not mutate inputs.

## License

[Unlicense](LICENSE) — public domain.