Trying to get the length of a variable territories, yet when I do territories.length it gives me 0. When I use console.log and look in the JavaScript console, it shows
child 
{
    length: 0, 
    models: Array[0], 
    _byId: Object, 
    _events: Object, 
    _listenerId: "l11"
}
So the length is 0 but when I expand that, it says that the length is9. I want it to be 9. How can I get length:9?
 
     
     
     
    