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.
var purchased = $firebase(new Firebase(FIREBASE_URL + 'purchased/' + uid)).$asArray();
purchased.$loaded(function () {
$scope.shopping_items = $(items).not(purchased).get();
}
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.