@dxos/compute - v0.16.0
Preparing search index...
StorageService
withDefault
Function withDefault
withDefault
<
T
>
(
getDefault
:
()
=>
NoInfer
<
T
>
,
)
:
(
cell
:
Cell
<
T
>
)
=>
CellWithDefault
<
T
,
T
>
Assign a default value to a cell if it is not present.
Type Parameters
T
Parameters
getDefault
:
()
=>
NoInfer
<
T
>
Returns
(
cell
:
Cell
<
T
>
)
=>
CellWithDefault
<
T
,
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@dxos/compute - v0.16.0
Loading...
Assign a default value to a cell if it is not present.