Flatten an object.
Do not use it to flatten recursively referencing objects.
An object whose properties reflect one single leaf property of the the inputValue. thus making an object with nested values (objects and arrays), into one object with no nested value.
flatten({ a: 1, b: [0, 1], c: { c1: 2, c2: 3}});// { a: 1,// "b.0": 0,// "b.1": 1,// "c.c1": 2,// "c.c2": 3,// }
Any plain javascript object.
Generated using TypeDoc
Flatten an object.
Do not use it to flatten recursively referencing objects.
Returns
An object whose properties reflect one single leaf property of the the inputValue. thus making an object with nested values (objects and arrays), into one object with no nested value.
Example