fluent-compose

0.0.1 • Public • Published

fluent-compose

npm package [![Coveralls][coveralls-badge]][coveralls]

fluent-compose

More documentation needed.

import * as zaphod from 'zaphod/compat';
import * as lodashFpCollection from 'lodash/fp/collection';
import { threadFirst, threadLast, fluentCompose } from 'fluent-compose';
 
const zaphodTransform = threadFirst(zaphod);
const lodashTransform = threadLast(lodashFpCollection);
 
const transform = fluentCompose({
  ...zaphodTransform,
  ...lodashTransform,
})
 
const transformer = transform
  .map(x => x + 2)
  .filter(x => x % 2)
  .set(0, 3)
 
transformer([1,2,3,4]) // [3, 6]

/fluent-compose/

    Package Sidebar

    Install

    npm i fluent-compose

    Weekly Downloads

    3

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • jimmyhmiller