Skip to content
Advertisement

Tag: reducing

How to entirely level (map / reduce / recursion) a nested object of unknown depth in the most efficient manner?

I would like to do something like the following but in a more large scale and efficient way. Assume I have an array of objects where each object needs to be leveled/flattened. Convert something like this … … to that … As is shown above, address as well is an object which needs to be leveled/flattened. But most importantly, one

Advertisement