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
- Host: GitHub
- URL: https://github.com/streamich/pure-arr
- Owner: streamich
- License: unlicense
- Created: 2018-11-20T21:49:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:28:21.000Z (over 2 years ago)
- Last Synced: 2025-08-09T13:43:19.488Z (11 months ago)
- Language: TypeScript
- Size: 2.33 MB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.