Using Symbol.toStringTag, user-defined types can return customized output when passed to Object.prototype.toString (either directly or as a result of string coercion) by storing a descriptive string in a Symbol.toStringTag-keyed property.
Specification
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 49
- Chrome for Android release 49
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- In development
- Shipped/Shipping
- In development
- No signals
Owners
Last updated on 2020-11-09