I'm not so experienced in javascript, so I ask for a little help.
I have the following data array representation:
[name, obj1[name, type, obj2[name, type, obj3[name, type]]], obj4[name, type]]
Every object has properties as name and type.
The first name is the name of the main object. After that, if an object has another object inside, it opens new array for the properties of that object and potential other objects.
How can I iterate through this recursively and show this array in this way:
name(This can be left just as "name")
name(of obj1)
type(of obj1)
name(of obj2)
type(of obj2)
name(of obj3)
type(of obj3)
name(of obj4)
type(of obj4)