evaluate
Callable
Type parameters
- T
The element type.
Parameters
maybeEvaluate: T | () => T
The value to evaluate
Returns T
A function that takes a value of type T or a function that returns a value of type T and returns a value of type T.
- T
The element type.
The value to evaluate
A function that takes a value of type T or a function that returns a value of type T and returns a value of type T.
Takes a value or a function that returns a value, and returns the value.
Example