SyntaxFix
Write A Post
Hire A Developer
Questions
in Eike Thies's response above, if we use underscore.js, filter could be simplified to :
var app = angular.module('myApp', []).filter('object2Array', function() { return function(input) { return _.toArray(input); } });