The type of the value stored.
Readonly[toThe well-known symbol Symbol.toStringTag used by Object.prototype.toString().
Returns 'Lazy' so that Object.prototype.toString.call(lazy) produces '[object Lazy]'.
Forces the evaluation of this lazy value and returns the result.
If the value has already been initialized, returns the cached value. Otherwise, executes the initialization function, caches the result, and returns it.
The initialized value.
A value which is initialized on the first access.
The initialization function is provided at construction time and executed on first access. Subsequent accesses return the cached value.
Since
1.6.0
See
Example