You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decorates a function to accept and return Promises.
varasPromised=require('as-promised');varlogp=asPromised(console.log);logp(Promise.resolve(2));// prints 2varmaxp=asPromised(Math.max);logp(maxp(2,Promise.resolve(3)));// prints 3
About
Decorates a function to accept and return Promises.