domain: client
language: javascript
class Item class
Use each_filter method to iterate over filters owned by an item.
The each_filter() method specifies a function to run for each filter (the current filter is passed as a parameter).
You can break the each_filter loop at a particular iteration by making the callback
function return false
.
function customer_filters(customers) {
customers.each_filter(function(f) {
console.log(f.filter_caption, f.value);
});
}