@rimbu/deep
Offers tools to use handle plain JS objects as immutable objects.
For complete documentation please visit the Rimbu Docs.
Installation
yarn add @rimbu/deep
or
npm i @rimbu/deep
recommended tsconfig.json settings
Rimbu uses advanced and recursive typing, potentially making the TS compiler quite slow. It is recommended to set the following values in the tsconfig.json
file of your project:
{
"compilerOptions": {
"skipLibCheck": true,
"noStrictGenericChecks": true
}
}
Usage
import { Patch } from '@rimbu/deep';
console.log(
Patch({
a: 'a',
b: { c: 1, d: true },
})({
a: 'q',
b: { c: (v) => v + 1 },
})
);
Author
Arvid Nicolaas
Contributing
Feel very welcome to contribute to further improve Rimbu. Please read our Contributing guide.
Contributors
Made with contributors-img.
License
Licensed under the MIT License, Copyright © 2020-present Arvid Nicolaas.
See LICENSE for more information.