Enumerable.forEach Method

Applies a function to every element in the sequence.
 
 
Static This method is static.

Parameters

source

Type: IEnumerable
The sequence of elements to apply the function to.
func

Type: Function
Function to apply. Each element and its index is passed to the function.
thisArg

Type: Object
Object to use as this when executing func.

Return Value


Type: IEnumerable
The sequence.