We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Generate a (first) parameter-collapsed version of a function.
Similar: spread, unspread.
function unspread(x) // x: a function
const xasyncfn = require('extra-async-function'); var fn = xasyncfn.unspread(Math.min); fn([7, 4, 9]); // Math.min(7, 4, 9) // → 4 var fn = xasyncfn.unspread((x, i, I) => x.slice(i, I)); fn([[1, 2, 3, 4], 2]); // [1, 2, 3, 4].slice(2) // → [3, 4]