Fixed lume.filter() example in README.md

This commit is contained in:
rxi 2014-02-27 23:23:07 +00:00
parent 602cf574fa
commit 02cdf32bdd

View File

@ -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
an array and retains its original keys.
```lua
lume.filter({1, 2, 3, 4}, function(x) return x % 2 == 0 end, true)
-- Returns {2, 4}
lume.filter({1, 2, 3, 4}, function(x) return x % 2 == 0 end) -- Returns {2, 4}
```
### lume.merge(t, t2 [, retainkeys])