Skip to content

fp-js/fj-find

Repository files navigation

fj-find

Build Status npm version

find FP style.

Installation

npm install fj-find --save

Usage

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

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

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

let getOdds = find(isOdd);

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