This PR curries the fuzzysearch method if you pass only one argument. With it you can pass it to array.filter like so:
var stuff = ['cartwheel', 'boatwheel', 'wheels on the bus', 'car tire'];
var results = stuff.filter(fuzzysearch('car'));
console.log(results); // ['cartwheel', 'car tire']
The existing uncurried two argument API is exactly the same.
This PR curries the fuzzysearch method if you pass only one argument. With it you can pass it to array.filter like so:
The existing uncurried two argument API is exactly the same.