function sap/base/util/each

Control sample: module:sap/base/util/each
Visiblity: public
Available since: N/A
Module: sap/base/util/each
Application Component:

Iterates over elements of the given object or array.

Numeric indexes are only used for instances of Array. For all other objects, including those with a numeric length property, the properties are iterated by name.

When fnCallback returns false, then the iteration stops (break).


Parameters Overview

Param Type Default Value Description
oObject object|any[] object or array to enumerate the properties of
fnCallback function function to call for each property name

Methods Overview

Method Description