Как построить обещание Bluebird, которое возвращает постоянную строку?
Если у меня есть что-то вроде этого
return this.retrieveArticles(blogId).then(function(response){
return response.articles;
}).then(_).call("findWhere", match).then(function(article){
return {
"article": article
}
});
и я решил отрубить верхнюю часть
return response.articles;
}).then(_).call("findWhere", match).then(function(article){
return {
"article": article
}
});
Как мне сделать что-то вроде
Promise.return(articles).then(_).call("findWhere", match).then(function(article){
return {
"article": article
}
});