0.0.6 • Published 6 years ago

fp-arsenal v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Phytertek JavaScript Functional Programming Arsenal

A library of useful fp methods

Core

import ->

const { c } = require('fp-arsenal');
// or
const c = require('fp-arsenal/lib/core');

methods ->

  • curry
  • compose
  • pipe
  • identity

example ->

const { c, a } = require('fp-arsenal');

const pipeline = c.pipe(
  a.map(v => v + v),
  a.reduce((r, c) => r + c),
  v => `Total :: ${v}`
);

const data = [1, 2, 3];

const result = pipeline(data); // 'Total :: 12'

... TBC

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago