Module:Util/tables/size/Documentation/Spec: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Created page with "local p = {} function p.Documentation() return { params = {"tbl"}, returns = "Total number of keys in <code>tbl</code>.", cases = { { args = {{1, 2, foo = "bar"}}, expect = 3, }, }, } end return p")
 
m (PhantomCaleb moved page Module:Util/Table/size/Documentation/Spec to Module:Util/tbl/size/Documentation/Spec without leaving a redirect)
(No difference)

Revision as of 17:05, 5 May 2024

Documentation for this module may be created at Module:Util/tables/size/Documentation/Spec/Documentation

local p = {}

function p.Documentation()
	return {
		params = {"tbl"},
		returns = "Total number of keys in <code>tbl</code>.",
		cases = {
			{
				args = {{1, 2, foo = "bar"}},
				expect = 3,
			},
		},
	}
end

return p