日本語
Appearance
Iterable/AsyncIterable を反復処理し、各要素を順番に f に適用します(forEach)。
f
Signature:
declare function each<A, B = unknown>( f: (a: A) => B, iterable: Iterable<A>, ): void;
each(console.log, [1, 2, 3]); // log 1, 2, 3
Try It
Open Source Code