mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Fixed example mistake in reject()'s README section
This commit is contained in:
parent
7911d62c53
commit
976f813de9
@ -178,7 +178,7 @@ The opposite of `lume.filter()`: Calls `fn` on each value of `t` table; returns
|
|||||||
a new table with only the values where `fn` returned false. If `retainkeys` is
|
a new table with only the values where `fn` returned false. If `retainkeys` is
|
||||||
true the table is not treated as an array and retains its original keys.
|
true the table is not treated as an array and retains its original keys.
|
||||||
```lua
|
```lua
|
||||||
lume.filter({1, 2, 3, 4}, function(x) return x % 2 == 0 end) -- Returns {1, 3}
|
lume.reject({1, 2, 3, 4}, function(x) return x % 2 == 0 end) -- Returns {1, 3}
|
||||||
```
|
```
|
||||||
|
|
||||||
### lume.merge(...)
|
### lume.merge(...)
|
||||||
|
Loading…
Reference in New Issue
Block a user