barbiturat
8/3/2017 - 7:12 PM

composeP

composeP

const getProm = val => new Promise(resolve => resolve(val));

composeP(inc, getProm)(5).then(res => console.log(res)) //-> Promise 6