apr-apply

3.0.3 • Public • Published

apply

Creates a continuation function with some arguments already applied.

Parameters

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i apr-apply

    Weekly Downloads

    6

    Version

    3.0.3

    License

    MIT

    Last publish

    Collaborators

    • ramitos