The Map[@@toStringTag]
property has an initial value of "Map".
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Property attributes of Map.prototype[@@toStringTag] |
|
---|---|
Writable | no |
Enumerable | no |
Configurable | yes |
Syntax
Map[Symbol.toStringTag]
Examples
Using toStringTag
Object.prototype.toString.call(new Map()) // "[object Map]"
Specifications
Specification |
---|
ECMAScript (ECMA-262) The definition of 'Map.prototype[@@toStringTag]' in that specification. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | Server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@toStringTag | Chrome Full support 44 | Edge Full support 79 | Firefox Full support 51 | IE No support No | Opera No support No | Safari No support No | WebView Android Full support 44 | Chrome Android Full support 44 | Firefox Android Full support 51 | Opera Android No support No | Safari iOS No support No | Samsung Internet Android Full support 4.0 | nodejs Full support 6.0.0 |
Legend
- Full support
- Full support
- No support
- No support