===========
each_detail
===========

.. js:function:: each_detail(function(detail))

**domain**: client 

**language**: javascript

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

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

Use each method to iterate over details of an item.

The each_detail() method specifies a function to run for each detail of the item
(the current detail is passed as a parameter).

You can break the each_detail loop at a particular iteration by making the callback 
function return ``false``. 

See also
========

:doc:`Details </programming/data/details>`
