I give up. What's the point of this.
So *EXACTLY* how many objects *AT EACH LEVEL* do you want that to generate?
And in any case, what will each object at each level *CONTAIN*? I mean, I guess it's okay for a parent to contain only its children. But at the lowest level, surely those final children should contain *something* useful.
Let's take a smaller example:
generateData( 6, 4 )
Is that supposed to generate:
Code:
var something = [
child1 : {
child2 : {
child3 : {
obj1 : "nothing?",
obj2 : "nothing?",
obj3 : "nothing?",
obj4 : "nothing?",
obj5 : "nothing?",
obj6 : "nothing?"
}
}
};
Or what?
las