6 lines
132 B
TypeScript
6 lines
132 B
TypeScript
export function forEach<T>(value: Iterable<T>, action: (it: T) => void) {
|
|
for (const it of value) {
|
|
action(it);
|
|
}
|
|
}
|