W3cubDocs

/JavaScript

[email protected]@toStringTag

The Map[@@toStringTag] property has an initial value of "Map".

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

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
@@toStringTag 44 79 51 No No 9.1
Mobile
Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
@@toStringTag 44 44 51 No 9.3 4.0
Server
Node.js
@@toStringTag 6.0.0

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/@@toStringTag