node package manager

fj-find

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