Extjs store find all
extjs, extjs4, javascript
Solution
I think the best function met your needs is `queryBy()` because it returns array of matched Records.
You still can use `each()` to check if the Model matches the criteria then add them to an array. But this function is more appropriate to traversing all Records in the store, not just for "filtering" data.
Problem
Documentation of `Ext.data.Store` find method says: Finds the index of the first matching Record in this store by a specific field value. My question is how can I find indexes of all matching records in this store?