Preparing search index...
The search index is not available
@zeix/ui-element
@zeix/ui-element
asNumber
Function asNumber
Parse an attribute as as number with a fallback
Since
0.11.0
asNumber
(
fallback
?:
number
)
:
(
value
:
null
|
string
)
=>
number
Parameters
Optional
fallback
:
number
= 0
fallback value
Returns
(
value
:
null
|
string
)
=>
number
parser function
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@zeix/ui-element
Loading...
Parse an attribute as as number with a fallback
Since
0.11.0