for...of

Read More at MDN DocsView Spec

Safe to Use

for...of is considered safe to use.

It’s supported by 94% of global browsers.

Browsers

ChromeOct 7, 2014v38.0.0
26%100%
100% of Chrome users are running a supported version.
SafariOct 22, 2013v7.0.0
5%100%
100% of Safari users are running a supported version.
EdgeJul 28, 2015v12.0.0
5%100%
100% of Edge users are running a supported version.
FirefoxJun 5, 2012v13.0.0
3%100%
100% of Firefox users are running a supported version.

Servers

Node.jsFeb 6, 2015v0.12.0
Node.js supports this feature.
DenoMay 4, 2020v1.0.0
Deno supports this feature.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Oct 7, 2014 v38.0.0
26%100%
100% of Chrome users are running a supported version.
Oct 7, 2014 – Latest
v38.0.0+
26%100%

Full Support

Chrome Android
Oct 8, 2014 v38.0.0
36%100%
100% of Chrome Android users are running a supported version.
Oct 8, 2014 – Latest
v38.0.0+
36%100%

Full Support

Deno
May 4, 2020 v1.0.0
Deno supports this feature.
May 4, 2020 – Latest
v1.0.0+

Full Support

Edge
Jul 28, 2015 v12.0.0
5%100%
100% of Edge users are running a supported version.
Jul 28, 2015 – Latest
v12.0.0+
5%100%

Full Support

Firefox
Jun 5, 2012 v13.0.0
3%100%
100% of Firefox users are running a supported version.
Jun 5, 2012 – Latest
v13.0.0+
3%100%

Full Support

Before Firefox 51, using the for...of loop construct with the const keyword threw a SyntaxError ("missing = in const declaration").

Firefox for Android
Jun 26, 2012 v14.0.0
Firefox for Android supports this feature.
Jun 26, 2012 – Latest
v14.0.0+

Full Support

Before Firefox 51, using the for...of loop construct with the const keyword threw a SyntaxError ("missing = in const declaration").

Internet Explorer
Unsupported
Internet Explorer does not support this feature.

No Support

Node.js
Feb 6, 2015 v0.12.0
Node.js supports this feature.
Feb 6, 2015 – Latest
v0.12.0+

Full Support

 
Quest Browser
Unknown v5.0.0
Quest Browser supports this feature.
Unknown
v5.0.0+

Full Support

Opera
Oct 15, 2014 v25.0.0
1%100%
100% of Opera users are running a supported version.
Oct 15, 2014 – Latest
v25.0.0+
1%100%

Full Support

Opera Android
Oct 16, 2014 v25.0.0
Opera Android supports this feature.
Oct 16, 2014 – Latest
v25.0.0+

Full Support

Safari
Oct 22, 2013 v7.0.0
5%100%
100% of Safari users are running a supported version.
Oct 22, 2013 – Latest
v7.0.0+
5%100%

Full Support

Safari on iOS
Sep 18, 2013 v7.0.0
17%100%
There are no users of Safari on iOS running a supported version.
Sep 18, 2013 – Latest
v7.0.0+
17%100%

Full Support

Samsung Internet
Apr 10, 2015 v3.0.0
2%97%
There are no users of Samsung Internet running a supported version.
Apr 10, 2015 – Latest
v3.0.0+
2%97%

Full Support

WebView Android
Oct 8, 2014 v38.0.0
WebView Android supports this feature.
Oct 8, 2014 – Latest
v38.0.0+

Full Support

See Also

Contribute