Skip to content

ptzagk/pure-arr

 
 

Repository files navigation

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.

About

Immutable pure Array.prototype functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.4%
  • JavaScript 10.6%