Module:Utils

From Darkest Dungeon Wiki
Jump to navigation Jump to search
Template-info.svg Documentation

A general utility module for writing Lua on the wiki. Functions are documented below.

unpack

This is a shim that offers compatibility between Lua 5.1 and Lua >= 5.2 version of unpack.


local function _unpack(tbl)
	return (unpack or table.unpack)(tbl)
end

return {
	unpack=_unpack
}