Creates a local undefined
in case someone redefines undefined
somewhere in the scope chain.
Also provides a faster lookup since undefined
is a global property, so the scope chain traversal is reduced.
More Related Contents:
- What is the purpose of the HTML “no-js” class?
- Run custom code after jQuery has been loaded via Modernizr
- Javascript Regex for decimal [duplicate]
- jQuery Event Keypress: Which key was pressed?
- Why does babel rewrite imported function call to (0, fn)(…)?
- How do I replace while loops with a functional programming alternative without tail call optimization?
- Sequelize model association won’t create a new column
- Parallel asynchronous Ajax requests using jQuery
- Remove All Event Listeners of Specific Type
- Convert blob URL to normal URL
- Why Array.indexOf doesn’t find identical looking objects
- Manipulating innerHTML removes the event handler of a child element? [duplicate]
- Case-insensitive search
- Detect iPad users using jQuery?
- Property ‘value’ does not exist on type EventTarget in TypeScript [duplicate]
- Detecting WebP support
- How does facebook rewrite the source URL of a page in the browser address bar?
- Function parameter definitions in ES6
- How to save binary data of zip file in Javascript?
- Javascript to convert UTC to local time
- Angularjs does not load scripts within ng-view
- JavaScript: Detect AJAX requests
- Array.from() vs spread syntax
- Does ECMAScript 6 have a convention for abstract classes? [duplicate]
- How do I call a function inside of another function?
- Controlling a Firefox Extension via Javascript
- jQuery click() still being triggered after .clickable class is removed
- How to properly escape characters in regexp
- JS async/await – why does await need async?
- jquery serialize and multi select dropdown