Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 323 Bytes

Readme.md

File metadata and controls

24 lines (14 loc) · 323 Bytes

filterify

Turns any function into an array filter

Installation

Install with component(1):

$ component install bredele/filterify

Usage

var filterify = require('filterify');
var pair = filterify(function(n){return !(n % 2);});

pair([1,2,3]);
// [2]

License

MIT