src/vs/base/common/iterator.ts/forEach
	export function forEach<T>(iterable: Iterable<T>, fn: (t: T, index: number) => any): void {
		let index = 0;
		for (const element of iterable) {
			fn(element, index++);
		}
	}