1 contributor
Like
Install thunkify as a package?
Copied
npm i @bit/justin-capalbo.ramda.thunkify
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
thunkify (
fn:
) : Function
Function
Creates a thunk out of a function. A thunk delays a calculation until its result is needed, providing lazy evaluation of arguments.
Example
Argument
fn:
Function
A function to wrap in a thunk
Returns
Function
Expects arguments for `fn` and returns a new function that, when called, applies those arguments to `fn`.