1 2 3 4 | var done = function(response) { console.log('response', response) } var fail = function(error) { console.log('error', error) } var always = function() { console.log('always') } Promise.resolve(42).then(done).catch(fail).then(always, always) |
from:https://github.com/github/fetch/issues/223#issuecomment-148927226