日本語
Appearance
関数 f を引数リスト args に適用します。
f
args
Signature:
declare function apply<F extends Arrow, T extends Parameters<F>>( f: F, ): (args: T) => ReturnType<typeof f>;
apply(Math.max, [1, 2, 3, 4, 5]); // 5 pipe( repeat(10), map(a => a * Math.random()) take(5), apply(max) );
Open Source Code