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

install

npm i apr-apply

Downloadsweekly downloads

13

version

3.0.3

license

MIT

homepage

apr.js.org

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability