Lua: How to find out if an element is a table instead of a string/number?

Viewed 43154

As the title says, what function or check can I do to find out if a lua element is a table or not?

local elem = {['1'] = test, ['2'] = testtwo}
if (elem is table?) // <== should return true
4 Answers
Related