Skip to main content

Object Property Shorthand

This syntax makes it easier to place several variables into a table.

New Code
pluto
local type = "greeting"
local target = "world"
print(dumpvar($object(type, target)))
Old Code
pluto
local type = "greeting"
local target = "world"
print(dumpvar({ type = type, target = target }))