ramda / ramda

:ram: Practical functional Javascript

Home Page:https://ramdajs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support promises for pipe and pipeWith

b-sudhakar opened this issue · comments

Currently pipe and pipeWith does not wait for promises to complete, enhance pipe functions to support promises.

Hi @b-sudhakar , you can use andThen for this. eg pipeWith(andThen) or pipe(f, g, andThen(h)). There is an example in the andThen docs. Might be nice to add a pipeWith example as well, maybe to andThen and to the pipeWith docs. Would you like to submit a PR?

Thanks @kedashoe , let me take look and will create a PR.

@kedashoe thought I'd pick this up, there doesn't seem to be a PR, it's six months now