Contents tagged with promise
-
JavaScript method syntax and chaining Promises
Live demo promise .then((bar) => { return do_this(bar); }) /* 1: YES */ .then(function(bar) { do_this(bar); }) /* 2: NO */ .then(function (bar) { return do_this(bar); }) /* 3: YES */ . … more