immutadeep
v1.0.0
Published
A lightweight micro-utility (less than 1KB) for deep, immutable updates in JavaScript objects and arrays using simple dot notation.
Downloads
1
Maintainers
Readme
immutadeep
A lightweight utility for deep, immutable updates in JS.
ImmutaDeep
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.
🚀 Why Use ImmutaDeep?
- 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.
📦 Installation
npm install immutadeep
# or
yarn add immutadeep