Preparing search index...
The search index is not available
@saunos/utils
@saunos/utils
lazy
Function lazy
lazy
<
T
>
(
fn
)
:
{
value
:
T
;
}
Type Parameters
T
Parameters
fn
:
(
(
)
=>
T
)
(
)
:
T
Returns
T
Returns
{
value
:
T
;
}
value
:
T
Example
const
{
value
} =
lazy
(()
=>
1
+
1
)
value
// 2
Copy
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@saunos/utils
Loading...
Example