Reputation: 24998
I am glancing over some example code that uses promise
npm module and returns a resolved promise like so return promise.resolve(true);
.
Since we use Q, is it possible to do the same with Q?
Upvotes: 2
Views: 2597
Reputation: 3550
I think the solution your looking for is
> q(true).then(console.log.bind(console));
> true
Upvotes: 6