Standard built-ins

Symbol.unscopables

Try the free JavaScript compiler

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.unscopables

Return Value

symbol

The predefined protocol key.

Working Example

Example Snippetjavascript
console.log(Array.prototype[Symbol.unscopables].keys);
JavaScript Reference