0.1.0 • Published 6 years ago

@elementary/pointfree v0.1.0

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

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 😃