src/vs/base/common/collections.ts/forEach
export function forEach<T>(from: IStringDictionary<T> | INumberDictionary<T>, callback: (entry: { key: any; value: T }) => any): void {
	for (const [key, value] of Object.entries(from)) {
		const result = callback({ key, value });
		if (result === false) {
			return;
		}
	}
}