# Disable Symbol.prototype.description (`ts-compat/no-symbol-description`) 💼 This rule is enabled in the ✅ `recommended` config. The description of a symbol lives in an internal slot, so a polyfill cannot add `Symbol.prototype.description` back and the fallback has to parse the result of `Symbol.prototype.toString`. No version of IE supports it. `Symbol.prototype.description` needs Chrome 70, Edge 79, Firefox 63, Safari 12.1, Opera 57 or iOS Safari 12.2 to run. ## Rule Details This rule bans `sym.description`, optional chaining included. The bracket form `sym["description"]` is not checked. Examples of **incorrect** code for this rule: ```ts var s: symbol = Symbol.iterator; var maybeSym: symbol | undefined; s.description === "Symbol.iterator"; Symbol.prototype.description; maybeSym?.description; ``` Examples of **correct** code for this rule: ```ts var s: symbol = Symbol.iterator; String(s) === "Symbol(Symbol.iterator)"; ``` ## When Not To Use It * Every target browser is new enough, so the accessor is safe to read. * The description is only used by debugging code that never ships. ## Further Reading * [MDN Symbol.prototype.description](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/description) * [can i use Symbol.prototype.description](https://caniuse.com/mdn-javascript_builtins_symbol_description)