Documentation / @ripl/utilities / functionProduce
Function: functionProduce()
functionProduce<
TValue>(value): () =>TValue
Defined in: packages/utilities/src/function.ts:37
Wraps a value or factory function into a consistent factory that always returns the value.
Type Parameters
| Type Parameter |
|---|
TValue |
Parameters
| Parameter | Type |
|---|---|
value | TValue | (() => TValue) |
Returns
() => TValue