StricteachOn this pageeacheach() function Iterates over Iterable/AsyncIterable, applying each in turn to f. (forEach) Signature: declare function each<A, B = unknown>(f: (a: A) => B, iterable: Iterable<A>): void; Example each(console.log, [1, 2, 3]); // log 1, 2, 3 Try It Open Source Code