Top "Es6-promise" questions

An ES6 Promise is an ECMAScript 2015 object that represents an in-progress asynchronous operation

Promise reject() causes "Uncaught (in promise)" warning

Once a promise reject() callback is called, a warning message "Uncaught (in promise)" appears in the Chrome console. I can't …

javascript promise es6-promise catch-block
Promise callbacks returning promises

With regard to these great two sources: NZakas - Returning Promises in Promise Chains and MDN Promises, I would like …

javascript node.js promise es6-promise
How does jest.fn() work

Can anyone explain how does jest.fn() actually work with a real world example , as i'm literally confused on how …

unit-testing reactjs es6-promise jestjs
What happens if you don't resolve or reject a promise?

I have a scenario where I am returning a promise. The promise is basically triggered by an ajax request. On …

javascript ecmascript-6 es6-promise
jQuery ajax with ES6 Promises

I am trying to make a post request via jQuery using an ES6 promise: I have a function: getPostPromise(something, …

javascript jquery ajax cors es6-promise
Why does javascript ES6 Promises continue execution after a resolve?

As I understand a promise is something that can resolve() or reject() but I was suprised to find out that …

javascript promise ecmascript-6 es6-promise
ES5 vs ES6 Promises

I wanna know whether JS promises were a part of ES5? If so, why it doesn't work sometimes in the …

javascript promise es6-promise
Creating a (ES6) promise without starting to resolve it

Using ES6 promises, how do I create a promise without defining the logic for resolving it? Here's a basic example (…

javascript promise es6-promise
Catch all unhandled javascript promise rejections

I would like to catch all unhandled exceptions/rejections that take place within a javascript Promise. Is there a good …

javascript es6-promise
Does a async function which returns Promise<void> have an implicit return at the end of a block?

public async demo(): Promise<void> { // Do some stuff here // Doing more stuff // ... // End of block without return; } Is …

javascript typescript es6-promise