Standard built-ins
Symbol.unscopables
Names marked truthy in the object at this key are excluded from legacy with environment lookup. Avoid with in modern code; it is forbidden in strict mode.
Formal Syntax & Structure
javascript syntaxjavascript
Symbol.unscopablesReturn Value
symbol
The predefined protocol key.
Working Example
Example Snippetjavascript
console.log(Array.prototype[Symbol.unscopables].keys);