Module:Util/tables/property
< Module:Util | tables
The curried version of this function is used interally by Module:Util/tables/iteratee. The non-curried version has no foreseeable use and exists only for the sake of completeness.
property(tbl, key)
Returns
- The value of
tbl[key]
Examples
# | Input | Output | Status |
---|---|---|---|
1 | property({ foo = "bar" }, "foo")
| "bar"
| |
2 | property({ foo = "bar" }, "baz")
| nil
|