All Projects → streamich → pure-arr

streamich / pure-arr

Licence: Unlicense license
Immutable pure Array.prototype functions

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].