title: How to get the json array length from firebase database
body: <p>I have a code that retrives a simple json array and i just want to loop </p>
  
  <pre><code>var ref = new Firebase("firebase object path");
  var sync = $firebase(ref);
  var result = sync.$asArray();
  </code></pre>
  
  <p>and then i can't get the json array length using "result.length" it just give a result of 0 length but not the exact value can anyone help me...?</p>