pandastrike / fairmont

Functional (and) reactive programming library for JavaScript.
ISC License
49 stars 8 forks source link

`pick` and `omit` à la underscore.js #29

Closed PandaWhisperer closed 9 years ago

PandaWhisperer commented 9 years ago

I'd like something like underscore's pick and omit in fairmont.

dyoder commented 9 years ago

Closed in Alpha 14.

dyoder commented 9 years ago

By the way, this doesn't work quite the same as Underscore. It's more fuctionally-oriented. But you can filter by property name by using a partial application for includes:

pick (partial includes, _, (w "foo bar baz")), object

We could do something like pick_by that takes a function and pick just takes a list of properties.