Module:Util/tables/len/Documentation

From Zelda Wiki, the Zelda encyclopedia
< Module:Util‎ | tables‎ | len
Revision as of 15:33, 5 May 2024 by PhantomCaleb (talk | contribs) (Created page with "{{#invoke:Documentation|Module}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Util/tables/len

len(tbl)

Returns

  • The length of the array component of tbl. Unlike the # operator, this function works with frame.args and tables loaded via mw.loadData.

Examples

#InputOutputResult
1
len({1, 2, 3, [10] = 10})
3
Green check.svg
2
len({ foo = "bar" })
0
Green check.svg