modify-object-recursively
A npm module which allows you to perform a single function on an object, and any sub objects recursively, it works ONLY on objects, and does not do anything with any other type of values. this is useful when you wish to append methods, or new keys to objects, or sub objects.
Usage and examples
- Install.
yarn add modify-object-recursively
npm install modify-object-recursively
- Import/RequireUsage
;
- Actual use examples// Declare the objectvar obj =a: 1b: a: 1 b: {};// Apply some method to object and sub objectsvar result=;
- result will be:
a: 1b:a: 1 b:2test2: 3test1: 2test2: 3test1: 2test2: 3;
License
The license chosen for this project can be found inside package.json: MIT
Hopefully this module will save you a little bit of time, have fun and best of luck!