Transform this promise's fulfillment value, returning a new Promise for the transformed result. If the promise cannot be fulfilled, onRejected is called with the reason. onProgress may be called with updates toward this promise's fulfillment.
Promise.then(onFulfilled, onRejected, onProgress)
Transform this promise's fulfillment value, returning a new Promise for the transformed result. If the promise cannot be fulfilled, onRejected is called with the reason. onProgress may be called with updates toward this promise's fulfillment.
Parameters
-
onFulfilled
{function()}
Optionalfulfillment handler
-
onRejected
{function()}
Optionalrejection handler
-
onProgress
{function()}
Optional@deprecated progress handler
Returns
{Promise}
new promise