Skip to content

Instantly share code, notes, and snippets.

View ajchambeaud's full-sized avatar

Ainu Jorge Chambeaud Helguera ajchambeaud

View GitHub Profile
@ajchambeaud
ajchambeaud / index.js
Created December 10, 2015 18:28
Promise Error Handler
function a(){
var promise = new Promise(function (resolve, reject) {
resolve(1);
});
return promise;
}
function b(){
return a().then(function () {
return Promise.resolve("11");