Skip to content

fp-js/fj-filter

Repository files navigation

fj-filter

Build Status npm version

Filter FP style.

Installation

npm install fj-filter --save

Usage

var filter = require('fj-filter');

let isOdd = (x) => x & 1;

filter(isOdd, [1,2,3]) // [1,3]

let getOdds = filter(isOdd);

getOdds([1,2,3]) // [1,3]