...
The typeof()
operator returns the type of the object to which it is applied. The return value is one of the strings that may be passed to as()
, or one of the other following values:
"Array"
"Map"
"Null"
- "Hex"
For example:
Code Block | ||||
---|---|---|---|---|
| ||||
nums = [1, 2, 3] nums_type = nums.typeof() // nums_type = "Array" |
...