component/to-function — pull request #3 by timoxley (2012-12-14 08:00:40+00:00)
Title: Add objectToFunction

This adds toObjectFunction functionality as described in https://github.com/component/enumerable/issues/8:

e.g.

```js

// Matching object properties:
var fn = toFunction({
name: 'Tobi',
age: /\d+/
});

// Note: matcher would ignore additional object properties
var luna = { name: 'Luna', age: 2 };
var tobi = { name: 'Tobi', age: 3 };

fn(luna); // => false
fn(tobi); // => true
```

Also only just found https://github.com/ForbesLindesay/to-bool-function/ via https://github.com/component/find/issues/1 via #8. Some duplicated effort here, but whatever.