Files
collection.ts/src/collection/onEach.ts
Infendro 24838b8f77
All checks were successful
/ publish (push) Successful in 1m24s
Implement Collection
2026-04-27 19:00:49 +02:00

7 lines
146 B
TypeScript

export function onEach<T>(value: T[], action: (it: T) => void): T[] {
for (const it of value) {
action(it);
}
return value;
}