Container.forEachElement

Syntax

forEachElement(fn: Function);

Parameters

fn. Function applied to all container items.

Description

The getItemById method applies the function to all container items.

Comments

The container item is sent to the function as an argument.

Example

The example of method use is given in description of the Container.contains method.

See also:

Container