node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

fj-fold

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'