diff options
Diffstat (limited to 'lua/inet/common.lua')
-rw-r--r-- | lua/inet/common.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/inet/common.lua b/lua/inet/common.lua new file mode 100644 index 0000000..6a84a13 --- /dev/null +++ b/lua/inet/common.lua @@ -0,0 +1,8 @@ +local M = {} + +function M.get_mt(t) + if type(t) ~= 'table' then return nil end + return getmetatable(t) +end + +return M |