fj-fold

1.0.1 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i fj-fold

Weekly Downloads

8

Version

1.0.1

License

MIT

Last publish

Collaborators

  • schtoeffel
  • hemanth