@thisables/curry
Version:
Currying made simple
10 lines (7 loc) • 366 B
JavaScript
import curryFunction from './module/curry';
// The placeholder could be any uniquely identifiable object.
// Its contents are irrelevant.
// We provide it with a `placeholder` property only to make it easier to
// see what it is in a debugger window, for example.
export const _ = {placeholder: 'curry-this'};
export const curry = curryFunction({placeholder: _});