coderef

Promise (initial support)Baseline · Widely available

A promise represents an asynchronous operation which eventually succeeds or fails.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 29, 2015. Widely available since Jan 29, 2018.

Browser support

DesktopChrome
1–31Not supported
32+Supportedsince Jan 14, 2014
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–28Not supported
29+Supportedsince Apr 29, 2014
Current: 157
Safari
1–7Not supported
8+Supportedsince Oct 16, 2014
Current: 27
MobileChrome Android
18–31Not supported
32+Supportedsince Jan 15, 2014
Current: 155
Firefox Android
4–28Not supported
29+Supportedsince Apr 29, 2014
Current: 157
Safari iOS
1–7Not supported
8+Supportedsince Sep 17, 2014
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: Promise.

Feature detection

JS · check before using
if (typeof Promise !== "undefined") {
  // Promise is available
}

Sub-features

Support for each part of the feature (10). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Promise321229832298
Promise.@@species51794810514810
Promise.Promise321229832298
Promise.all321229832298
Promise.catch321229832298
Promise.incumbent_settings_object_tracking✕✕50✕✕50✕
Promise.race321229832298
Promise.reject321229832298
Promise.resolve321229832298
Promise.then321229832298