Delayed evaluation function.
const always = thunk(id);const alwaysFoo = always("foo")alwaysFoo(); // "foo"
Function that will run the given function when called.
Delayed evaluation function.
Example
Returns
Function that will run the given function when called.