gkz/prelude-ls — pull request #70 by johngeorgewright (2014-04-17 09:59:51+00:00)
Title: Filtering and rejecting object keys

Unless you can point me to a simpler way of filtering objects by keys, I'd like to propose the following.

Obj.only
--------

Like `Obj.filter`, but acts on the key.

```ls
only (== \b), {a: 3, b: 4, c: 0} #=> {b: 4}
```

Obj.omit
--------

Like `Obj.reject`, but acts on the key.

```ls
omit (== \a), {a:1, b:2} #=> {a: 1}
```