Functiondojo.forEach

<script src="../../js/dojo.js"></script>
defined in dojo/_base/array.js

This function corresponds to the JavaScript 1.6 Array.forEach() method. In environments that support JavaScript 1.6, this function is a passthrough to the built-in method. For more details, see:

Usage

function (/*Array|String*/ arr, /*Function|String*/ callback, /*Object?*/ thisObject) (view source)
parametertypedescription
arrArray|Stringthe array to iterate on. If a string, operates on individual characters.
callbackFunction|Stringa function is invoked with three arguments: item, index, and array
thisObjectObjectOptional. may be used to scope the call to callback