This is a feature called destructuring assignment, which was added in JavaScript 1.7 and ECMAScript 6. It is not a part of ECMAScript 5: What is cross browser support for JavaScript 1.7’s new features? Specifically array comprehensions and the “let” statement
More Related Contents:
- Detect left mouse button press
- Official locator strategies for the webdriver
- How to launch html using Chrome at “–allow-file-access-from-files” mode?
- “Cannot read property of undefined” when using chrome.tabs or other chrome API in content script
- Colors in JavaScript console
- How is the default submit button on an HTML form determined?
- Google Chrome console.log() inconsistency with objects and arrays
- Disable same origin policy in Chrome
- “Uncaught TypeError: Illegal invocation” in Chrome
- style.display=’none’ doesn’t work on option tags in chrome, but it does in firefox
- What’s the difference between console.dir and console.log?
- Getting Error “Form submission canceled because the form is not connected”
- How to save the output of a console.log(object) to a file?
- How to include JavaScript file or library in Chrome console?
- How to show full object in Chrome console
- Create shortcut to console.log() in Chrome
- How to give a Blob uploaded as FormData a file name?
- Anchor tag download attribute not working :Bug in Chrome 35.0.1916.114
- Bug with Chrome’s localStorage implementation?
- Bizarre console.log behaviour in Chrome Developer Tools [duplicate]
- HTML5 video – show/hide controls programmatically
- Cross-Origin XMLHttpRequest in chrome extensions
- How to get result of console.trace() as string in javascript with chrome or firefox?
- How can I stop jQuery.ajax() from logging failures to the console?
- Stop Chrome Caching My JS Files
- Force hide address bar in Chrome on Android
- CreateTextRange is not working in Chrome
- chrome Pop-up blocker when to re-check after allowing page
- Cross-domain XMLHttpRequest using background pages
- XMLHttpRequest; Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource [duplicate]