title: Converting Firebase $asArray() to Javascript Array
body: <p>Is there any elegant way to go from Firebase $asArray() to a regular Javascript Array? I'm looking to get the difference between the array returned from Firebase and a regular array of objects.</p>
  
  <pre><code>var purchased = $firebase(new Firebase(FIREBASE_URL + 'purchased/' + uid)).$asArray();
    purchased.$loaded(function () {
      $scope.shopping_items = $(items).not(purchased).get();
    }
  </code></pre>
  
  <p>The goal of the above piece of code is to get the list of items that hasn't been purchased, the list of items is just a javascript array. If I can get the purchased array to be in the same format, the code should work.</p>