Baseline Widely JS
javascript.builtins.WeakMap.get
Granular MDN Browser Compat Data support history across 17 tracked browsers.
Specification Area
JS
Standard track
First Core Launch
Firefox 6
2011-08-16
Core-3 Stability
1,157d (3.2y)
Last: Safari (2014-10-16)
Baseline Feature
Widely
WeakMap
Browser Support Timeline
Notes (2)
Firefox: Before Firefox 38, this method threw aTypeError when the key parameter was not an object. However, the ES2015 specification specifies to return undefined instead. Furthermore, WeakMap.prototype.get accepted an optional second argument as a fallback value, which is not part of the standard. Both non-standard behaviors are removed in version 38 and higher.FF And: Before Firefox for Android 38, this method threw a TypeError when the key parameter was not an object. However, the ES2015 specification specifies to return undefined instead. Furthermore, WeakMap.prototype.get accepted an optional second argument as a fallback value, which is not part of the standard. Both non-standard behaviors are removed in version 38 and higher.Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 36 | 2014-07-16 | Supported |
| Firefox | desktop | 6 | 2011-08-16 | Supported |
| Safari | desktop | 8 | 2014-10-16 | Supported |
| Edge | desktop | 12 | 2015-07-29 | Supported |
| Chrome Android | mobile | 36 | 2014-07-16 | Supported |
| Firefox for Android | mobile | 6 | 2011-08-16 | Supported |
| Safari on iOS | mobile | 8 | 2014-09-17 | Supported |
| WebView Android | mobile | 37 | 2014-09-03 | Supported |
| WebView on iOS | mobile | 8 | 2014-09-17 | Supported |
| Samsung Browser | mobile | 3.0 | 2015-04-10 | Supported |
| Opera | desktop | 23 | 2014-07-22 | Supported |
| Opera Android | mobile | 24 | 2014-09-10 | Supported |
| Deno | server | 1.0 | 2020-05-13 | Supported |
| Node.js | server | 0.12.0 | 2015-02-06 | Supported |
| Bun | server | 1.0.0 | 2023-09-08 | Supported |
| Quest Browser | xr | 5.0 | 2018-07-01 | Supported |
| Internet Explorer | desktop | 11 | 2013-10-17 | Supported |