@elementary/pointfree

0.1.0 • Public • Published

Pointfree

Helper Functions to turn your Pointfull Code to Pointfree Code

Install

$ npm i @elementary/pointfree

Before Pointfree

PromiseA().then(x => PromiseB(x)).then(y => PromiseC(y)).then(......)

Is there any way so that I can remove those . 😕

After Pointfree

import { then } from '@elementary/pointfree'
import { compose } from '@elementary/core'

compose(then(......), then(x => PromiseC(x)), then(x => PromiseB(x)), PromiseA)()

Yay, Thank you Pointfree 😃

Package Sidebar

Install

npm i @elementary/pointfree

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • rajatsharma