Promise()
Methods
-
<static> catch(onRejected)
-
Parameters:
Name Type Description onRejectedfunction A Function called if the Promise is rejected. This function has one argument, the rejection reason.
Returns:
Returns the current Promise instance
- Type
- this
-
<static> each(callback)
-
Parameters:
Name Type Description callbackfunction Invoked for each callback
Returns:
Returns the current Promise instance
- Type
- this
-
<static> then(onFulfilled [, onRejected])
-
Parameters:
Name Type Argument Description onFulfilledfunction A Function called if the Promise is fulfilled. This function has one argument, the fulfillment value.
onRejectedfunction <optional>
A Function called if the Promise is rejected. This function has one argument, the rejection reason.
Returns:
Returns the current Promise instance
- Type
- this