Const
Value to be converted intoboolean, a function will be executed as (() => unknown)
.
Optional
defaultValue: booleanIf the value or the return value of the function == null then this will be returned.
Corresponding boolean value, if none then the default value, if none then null.
Convert a value into a number.
Value to be converted intonumber, a function will be executed as (() => unknown)
.
Optional
defaultValue: numberIf the value or the return value of the function == null then this will be returned.
Corresponding boxed number value, if none then the default value, if none then null.
Convert a value into a size.
Value to be converted intosize, a function will be executed as (() => unknown)
.
Optional
defaultValue: stringIf the value or the return value of the function == null then this will be returned.
Corresponding string value (number + 'px'), if none then the default value, if none then null.
Convert a value into a string.
Value to be converted intostring, a function will be executed as (() => unknown)
.
Optional
defaultValue: stringIf the value or the return value of the function == null then this will be returned.
Corresponding boxed string value, if none then the default value, if none then null.
Convert a value into a boolean.