@elementary/pointfree
v0.1.0
Published
Helpers Functions to convert your Pointfull Code to Pointfree Code
Downloads
3
Maintainers
Readme
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 😃