promise-me
promise-me copied to clipboard
POC for chrome style callbacks
Doesn't properly work with catches, but at least converts the main part of it.
For the following callback style:
getDetails(function(hm5) {
getLongLat(function (hm6) {
getNearbyBars(function (hm4) {
return console.log({foo: 'bar'});
}, function (hm) {
return console.log();
});
}, function (hm2) {
return console.log();
});
}, function(hm3) {
return console.log();
});