forEach

open override fun forEach(action: (item: T) -> Unit)(source)

Performs the specified action for each element in an array.

Parameters

callbackfn

A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

thisArg

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.