Function typeof_
pub fn typeof_(variable: &Variant) -> i64Expand description
Returns the internal type of the given variable, using the [enum Variant.Type] values.
var json = JSON.new()
json.parse('["a", "b", "c"]')
var result = json.get_data()
if typeof(result) == TYPE_ARRAY:
print(result[0]) # Prints "a"
else:
print("Unexpected result!")See also [method type_string].