Module:Util/tables/len/Documentation/Spec

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

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

local p = {}

function p.Documentation()
	return {
		params = {"tbl"},
		returns = "The length of the array compontent of <code>tbl</code>. Works with {{Scribunto Manual|frame.args}} and tables loaded thru {{Scribunto Manual|mw.loadData}}.",
		cases = {
			{
				args = {{1, 2, 3, [10] = 10}},
				expect = 3,
			},
		},
	}
end

return p