Set

The Set object lets you store unique values of any type, whether primitive values or object references.

Read More at MDN DocsView Spec

Safe to Use

Set 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 16, 2014v8.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

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

Full Support

Internet Explorer
Oct 17, 2013 v11.0.0
0%83%
There are no users of Internet Explorer running a supported version.
Oct 17, 2013 – Latest
v11.0.0+
0%83%

Full Support

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

Full Support

Mar 11, 2013 – Latest
v0.10.0+

This feature is behind the --harmony runtime_flag

 
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 16, 2014 v8.0.0
5%100%
100% of Safari users are running a supported version.
Oct 16, 2014 – Latest
v8.0.0+
5%100%

Full Support

Safari on iOS
Sep 17, 2014 v8.0.0
16%100%
There are no users of Safari on iOS running a supported version.
Sep 17, 2014 – Latest
v8.0.0+
16%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