← Back to release summary

Symbol.toStringTag (ES6)

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 49)
Intent stage
None

Summary

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.

Standards & signals

View on chromestatus.com