View Single Post
Old 01-10-2013, 12:25 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,162
Thanks: 59
Thanked 3,992 Times in 3,961 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
CoolCaptain (01-10-2013)