Created
August 3, 2017 19:12
-
-
Save gdekefir/018eef11d416c176f68eadab4ce9fc11 to your computer and use it in GitHub Desktop.
composeP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getProm = val => new Promise(resolve => resolve(val)); | |
composeP(inc, getProm)(5).then(res => console.log(res)) //-> Promise 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment