Why did ECMASCRIPT 6 reverse the sides for assignment when destructuring? [closed]
Why did ES6 decide that left-side assignment made more sense or was more useful for destructured assignments? Just on first look, it seems to make code more error prone, now that assignment can happen on both sides, depending on situation. let obj = { first: 'Jane', last: 'Doe' }; let { first: f, last: l } = obj; // f = 'Jane' // l = 'Doe' f and l are both seemingly being defined on the left, using values from a combination of the var names on the left and values of those vars from the right. Given that the rationale for this sytax is the keep it the same as object declaration syntax, why