improve promise version of flat map to not pause but instead queue the promise to be ended, do not check instanceOf Promise use then instead
improve promise version of flat map to not pause but instead queue the promise to be ended, do not check instanceOf Promise use then instead

rdy/flat-map