UNPKG

sharyn

Version:

Combines all the other packages under one.

14 lines (11 loc) 248 B
// @flow const curryOptional = (fn: Function, numArgs: number) => (...args: any[]) => (x: any) => fn( ...[ ...Array(numArgs) .fill(undefined) .map((val, i) => args[i]), x, ], ) export default curryOptional