Here is an example of the issue I am currently trying to solve: https://codepen.io/wombsplitter/pen/KyWKod
This is the structure of my array:
[{
//obj 1
link: [{
//obj 2
link: [{
//obj 3
}]
}]
}]
The array has the ability to contain any number of elements at different levels. My goal is to recursively navigate through the array and, using a rendering function, display them on the page while maintaining their original structure.
div.item
div.info
div.link
div.info
div.link
div.info
div.link
div.info
div.link
I would greatly appreciate any help or advice on how to achieve this.