The Thenable interface helps identifying Promise object through the then method
- Since:
-
- 0.2.2
Methods
-
then(onFulfilled [, onRejected])
-
The then() method returns a Promise. It takes up to two arguments: callback functions for the success and failure cases of the Promise
Parameters:
Name Type Argument Description onFulfilled
function called if the Promise is fulfilled
onRejected
function <optional>
called if the Promise is rejected
- Since:
-
- 0.2.2
Returns:
Promise
- Type
- Promise