Array.prototype[Symbol.unscopables]
Array.prototype[Symbol.unscopables] is a JavaScript property in the Array category. Properties excluded from with statements. The syntax is array[Symbol.unscopables]. A typical example: Array.prototype[Symbol.unscopables]. A close sibling is Array.prototype.map(), which creates a new array populated with the results of calling a provided function on every element. A close sibling is Array.prototype.filter(), which creates a new array with all elements that pass the test implemented by the provided function. A close sibling is Array.prototype.reduce(), which executes a reducer function on each element, resulting in a single output value. A close sibling is Array.prototype.forEach(), which executes a provided function once for each array element. More about this category: Array methods for manipulating arrays — map, filter, reduce, find, and more. Related Array methods: Array.prototype.map(), Array.prototype.filter(), Array.prototype.reduce(), Array.prototype.forEach(), Array.prototype.find(), Array.prototype.findIndex(), Array.prototype.findLast(), Array.prototype.some(). This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls.