File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -247,13 +247,28 @@ Returns a new array-like table containing all keys from the table.
247
247
local t = {
248
248
["key1"] = "value1",
249
249
["key2"] = "value2",
250
- "sequence ",
251
- "sequence sequence "
250
+ "foo ",
251
+ "bar "
252
252
}
253
253
254
254
print(dumpvar(t:keys())) -- { 1, 2, "key1", "key2" }
255
255
```
256
256
---
257
+ ### ` table.values `
258
+ Returns a new array-like table containing all values from the table.
259
+ #### Parameters
260
+ 1 . The table.
261
+ ``` pluto
262
+ local t = {
263
+ ["key1"] = "value1",
264
+ ["key2"] = "value2",
265
+ "foo",
266
+ "bar"
267
+ }
268
+
269
+ print(dumpvar(t:values())) -- { "foo", "bar", "value1", "value2" }
270
+ ```
271
+ ---
257
272
### ` table.countvalues `
258
273
Returns a key-value based table which describes how many times a value appears inside of a table.
259
274
#### Parameters
You can’t perform that action at this time.
0 commit comments