apr-apply
v3.0.3
Published
Creates a continuation function with some arguments already applied.
Maintainers
Readme
apply
Creates a continuation function with some arguments already applied.
Parameters
functionFunctionarguments...Any
Examples
import parallel from 'apr-parallel';
import apply from 'apr-apply';
const then = (v) => new Promise((resolve) => resolve(v));
const output = await parallel([
apply(then, 1)
apply(then, 2)
apply(then, 3)
]);
// output = [1, 2, 3]Returns Function
