• function
 

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

  1. onFulfilled {function()}Optional

    fulfillment handler

  2. onRejected {function()}Optional

    rejection handler

  3. onProgress {function()}Optional

    @deprecated progress handler

Returns

{Promise}

new promise

Help us improve StealJS by taking our community survey