In this post, we will see how to resolve make object structure recursive structure with same keys in javascript
Question:
Currently, I have this object
What I want is..
Can I get any hint for this?
Best Answer:
You can create recursive function and run it again if value is object, or setpath
if it is string. Check inline comments:If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review