Turns any function into an array filter
Install with component(1):
$ component install bredele/filterify
var filterify = require('filterify');
var pair = filterify(function(n){return !(n % 2);});
pair([1,2,3]);
// [2]
MIT
Turns any function into an array filter
Install with component(1):
$ component install bredele/filterify
var filterify = require('filterify');
var pair = filterify(function(n){return !(n % 2);});
pair([1,2,3]);
// [2]
MIT