Skip to content

curry1to0

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/editor/src/utils/fp.ts

Takes a 1 argument function and returns a function which when called, executes it with the provided argument.

Signature

ts
function curry1to0(proc: (arg: T) => R, arg: T): () => R

Parameters

NameType
proc(arg: T) => R
argT

Returns: () => R

Was this page helpful?

Download as PDF