, Array#filter. , :
[].filter.call({ a: 'b' }, function(x) { console.log(x) });
[].filter.call([1, 2], function(x) { console.log(x) });
, 1 2 (http://jsfiddle.net/ambiguous/tkRQ3/). , data , , native Array#filter , , .
Underscore ( filter) , :
, .
Array-ish Underscore _.m(collection, ...), , .
Backbone - , c.models, :
_.filter(this.models, function(data) { ... });
Backbone Underscore, :
- Underscore.js, 28 Backbone.Collection.
filter. Underscore , c.filter(...) _.filter(c.models, ...).
, , - " " , Underscore:
if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context);
_.filter (_.filter({a:'b'}, ...)) , , _.filter(backbone_collection, ...), Underscore.
, , , : http://jsfiddle.net/ambiguous/FHd3Y/1/