This commit is contained in:
Angelos Chalaris
2017-12-27 11:02:46 +02:00
parent 37bb271221
commit 3d79413392
45 changed files with 89 additions and 91 deletions

View File

@ -5,7 +5,7 @@ Changes a function that accepts an array into a variadic function.
Given a function, return a closure that collects all inputs into an array-accepting function.
```js
const collectInto = fn => ( ...args ) => fn( args );
const collectInto = fn => (...args) => fn(args);
/*
const Pall = collectInto( Promise.all.bind(Promise) )
let p1 = Promise.resolve(1)