I have Bluebird promise:
return Promise.props({
something: getSomething() // returns 2
})
.then(function (data) {
return {
a: 1,
b: data.something
};
});
I expect to get:
{ a: 1, b: 2 }
But I get instead a Promise, why's that?
{
isFulfilled: false
isRejected: false
}