Skip to content

finsyn/ramdap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ramda Promise Helpers

Just a few functions for working with promises in Ramda.

Functions

ofP

[Promise] -> Promise

Creates one promise out of an array of promises

pOf

a -> Promise

Turns any value into a promise that just resolves to that value

joinP

[(a -> Promise)] -> (a -> Promise)

Creates one promise returning functions out of multiple promise returning functions. The returned function will output an array of all the resulting resolved values.

tapP

(a -> (Promise b)) -> a -> a

Runs the given Promise returning function with the supplied object, then returns the object once the promise has resolved.

Installation

npm i ramdap

About

Utility functions for Promises in RamdaJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published