up.util up.util.each(list, block)
JavaScript function

Calls the given function for each element (and optional index) of the given list or iterator.


Parameters

list
required
Type: List | Iterator
block
required

A function that will be called with each element and (optional) iteration index.

Type: Function(element, index)