Changed typeof() example to include typeof()

Co-Authored-By: Leftyluupy <99181178+leftyluupy@users.noreply.github.com>
This commit is contained in:
Thaddeus Crews 2025-12-08 11:40:48 -06:00
parent dec5a373d9
commit d5df25fdc6
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -1428,7 +1428,7 @@
var json = JSON.new()
json.parse('["a", "b", "c"]')
var result = json.get_data()
if result is Array:
if typeof(result) == TYPE_ARRAY:
print(result[0]) # Prints "a"
else:
print("Unexpected result!")