pure-arr
v1.0.1
Published
Pure, immutable equivalents of `Array.prototype`.
Downloads
4
Readme
pure-arr
Pure, immutable equivalents of Array.prototype
.
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 — public domain.