0.1.0 • Published 6 years ago
@elementary/pointfree v0.1.0
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 😃
0.1.0
6 years ago