$$typeof
Returns the JSON type of the input
Usage​
{
"$$typeof": /* Value to get type of */
}
"$$typeof:{input}"
Returns​
string, one of:
"string""number""boolean""object""array""null"
Arguments​
| Argument | Type | Values | Required / Default Value | Description |
|---|---|---|---|---|
| Input | any | Yes | Value to get type of |
Examples​
Input
Definition
Output
"A"
"$$typeof:$"
"string"
1000
"$$typeof:$"
"number"
false
{
"$$typeof": "$"
}
"boolean"
[
1,
"true"
]
{
"$$typeof": "$"
}
"array"
{}
{
"$$typeof": "$"
}
"object"
3.14159265358979323846264338327950288419716939937510
{
"$$typeof": "$"
}
"number"
null
{
"$$typeof": "$"
}
"null"
undefined
{
"$$typeof": "$"
}
"null"