Web/JavaScript/Reference/Global objects/Map/@@toStringTag

From Get docs


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

Specification
ECMAScript (ECMA-262)The definition of 'Map.prototype[@@toStringTag' in that specification.]

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile Server
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet Node.js
@@toStringTag Chrome

Full support 44

Edge

Full support 79

Firefox

Full support 51

IE

No support No

Opera

No support No

Safari

Full support 9.1

WebView Android

Full support 44

Chrome Android

Full support 44

Firefox Android

Full support 51

Opera Android

No support No

Safari iOS

Full support 9.3

Samsung Internet Android

Full support 4.0

nodejs

Full support 6.0.0

Legend

Full support  
Full support
No support  
No support


See also