Module:Util/tables/len/Documentation
< Module:Util | tables | len
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
# | Input | Output | Result |
---|---|---|---|
1 | len({1, 2, 3, [10] = 10})
| 3
| |
2 | len({ foo = "bar" })
| 0
|