Skip to content
/ pall Public

Pall add functionalities to Promise. It uses native Promise, following static-land specification

License

Notifications You must be signed in to change notification settings

marcog83/pall

Repository files navigation

pall

Pall add functionalities to Promise. It uses native Promise, following static-land specification

Installation

npm install pall

Usage

import {compose,tap,map} from "pall";

var composed=compose(
    tap(x=>console.log("side effect!!!",x))
    ,map(x=>`Hello, ${x}!`)
    ,of
)
composed("Bob").then(result=>console.log(result)) 
composed("John").then(result=>console.log(result))

// side effect!!! Hello Bob! 
// side effect!!! Hello John!
// Hello Bob!  
// Hello John!

API

see api docs

Contribute

please feel free to open issues or pull requests if some implementations are not right. Just because it works does not mean it is correct.

About

Pall add functionalities to Promise. It uses native Promise, following static-land specification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published