Passes each element in the array to the given callback.
name | type | arguments | description |
---|---|---|---|
array | array |
The array to search. |
|
callback | function |
A callback to be invoked for each item in the array. |
|
context | object |
The context in which the callback is invoked. |
|
args | * | <optional> |
Additional arguments that will be passed to the callback, after the current array item. |
The input array.