Warning: This blog post is outdated. Instead, read chapter “Destructuring” and section “Parameter handling” in “JavaScript for impatient programmers”. ECMAScript 6 (ES6) supports destructuring, a convenient way to extract values from data stored in (possibly nested) objects and arrays. This blog post describes how it works and gives examples of its usefulness. Additionally, parameter handling rece