Skip to content

Wrap around array filter and turns any function into a filter

Notifications You must be signed in to change notification settings

bredele/filterify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Wrap around array filter and turns any function into a filter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published