justExec
The justExec() function executes a callback immediately and returns the callback result.
Interactive example
Syntax
typescript
function justExec<
GenericOutput extends unknown
>(
theFunction: () => GenericOutput
): GenericOutput;Parameters
theFunction: Callback executed immediately.
Return value
The value returned by theFunction.
See also
justReturn- Builds a constant callback that always returns the same valuepipe- Chain transformations and injectjustExecin a step
