mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 02:52:21 +00:00
Changed lume.clear() to return the table, updated doc & tests
This commit is contained in:
@@ -91,7 +91,8 @@ lume.remove(t, 2) -- `t` becomes { 1, 3 }
|
||||
```
|
||||
|
||||
### lume.clear(t)
|
||||
Nils all the values in the table `t`, this renders the table empty.
|
||||
Nils all the values in the table `t`, this renders the table empty. Returns
|
||||
`t`.
|
||||
```lua
|
||||
local t = { 1, 2, 3 }
|
||||
lume.clear(t) -- `t` becomes {}
|
||||
|
Reference in New Issue
Block a user