===========
each_filter
===========

.. js:function:: each_filter(function(filter))

**domain**: client 

**language**: javascript

**class** :doc:`Item class </refs/client/item_api>`

Description
===========

Use each_filter method to iterate over 
:doc:`filters <at_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``. 

Example
=======

.. code-block:: js

    function customer_filters(customers) {
        customers.each_filter(function(f) {
            console.log(f.filter_caption, f.value);
        });
    }    
    
:doc:`Filters </programming/data/filters>`    

:doc:`Filter class </refs/client/filter_api>`
