Immutability in under one kilobyte
🌱 Under 1kb, tiny API, zero dependencies.
👍 Makes all native array methods immutable operations.
✌️ Two simple methods
$unset for objects and arrays.
👉 Built for Node ES2015 environments. Use a bundler, transpiler, and Proxy polyfill as required.
Both objects and arrays have the
$unset to create new array with applied change.
Use all array instance methods as usual, however those that would normally return a single non-array value (pop, push, shift, unshift) will return an array containing the value and a new array (see part 2 in example below).
... read the whole story at github.com.