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.
Unlicense โ public domain.