A lightweight utility for deep, immutable updates in JS.
ImmutaDeep is a simple, yet powerful micro-utility for performing deep, immutable updates on JavaScript objects and arrays. It's designed to solve the problem of verbose, nested spread operators (...) when managing complex state.
- Immutability Guaranteed: It only clones the objects/arrays along the path to the updated property, leaving the original source object completely untouched.
- Simple API: A single function,
updateDeep(source, path, value). - Lightweight: Zero dependencies and under 1KB minified, making it fast and portable.
npm install immutadeep
# or
yarn add immutadeep