immutable-object-methods
Update normal plain javascript object, immutable style. Simlar to how immutable.js, seamless-immutable etc does it but a lot smaller and simpler.
Installation
This is a Node.js module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
npm install immutable-object-methods --save
Usage
; const input = a: b: 'c' ;const updated = ; console;console; const merged = ;console; // immutable assignconst assigned = ;console; const data = ;console; const beep = ;console;
Tests
npm installnpm test
Dependencies
None
Dev Dependencies
- ava: Testing can be a drag. AVA helps you get it done.
- package-json-to-readme: Generate a README.md from package.json contents
- prettier: Prettier is an opinionated code formatter
- ts-node: TypeScript execution environment and REPL for node.js, with source map support
- type-fest: A collection of essential TypeScript types
- typescript: TypeScript is a language for application scale JavaScript development
License
MIT