Executes a callback for each element in the source.
Type of items in the source.
Callback function to execute for each element.
Collector that executes a callback for each element in the source.
forEach<number>((x) => console.log(x))([1, 2, 3]);// 1// 2// 3 Copy
forEach<number>((x) => console.log(x))([1, 2, 3]);// 1// 2// 3
Executes a callback for each element in the source.