Executes a callback function for each element.
<void> Collection.forEach(<ForEachCallback> callback, [<ErrorCallback> errorCallback])
Parameter | Description |
---|---|
callback | Receives each element of the collection. |
error |
Optional. Is called when the operation failed with an error. |
Learn more about the Javascript: Collection.for