Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 441 Bytes

README.markdown

File metadata and controls

19 lines (12 loc) · 441 Bytes

fj-fold

Build Status npm version

FP-style array reduce

Installation

npm install fj-fold --save

Usage

var foldl = require('fj-fold').foldl;
var foldr = require('fj-fold').foldr;

foldl('x')(join)([1, 2]); // => 'x12'
foldr('x')(join)([1, 2]); // => 'x21'