mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Fixed lume.filter() example in README.md
This commit is contained in:
parent
602cf574fa
commit
02cdf32bdd
@ -101,8 +101,7 @@ Calls `fn` on each value of `t` table. Returns a new table with only the values
|
|||||||
where `fn` returned true. If `retainkeys` is true the table is not treated as
|
where `fn` returned true. If `retainkeys` is true the table is not treated as
|
||||||
an array and retains its original keys.
|
an array and retains its original keys.
|
||||||
```lua
|
```lua
|
||||||
lume.filter({1, 2, 3, 4}, function(x) return x % 2 == 0 end, true)
|
lume.filter({1, 2, 3, 4}, function(x) return x % 2 == 0 end) -- Returns {2, 4}
|
||||||
-- Returns {2, 4}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### lume.merge(t, t2 [, retainkeys])
|
### lume.merge(t, t2 [, retainkeys])
|
||||||
|
Loading…
Reference in New Issue
Block a user