Comment on ES6 in Depth: DestructuringparentComments−implicit11yIt's really valuable for mistakes to result in clear errors rather than confusing but "valid" programs.Even worse: let [a, b, c, d] = [2]; a receives 2. b, c, and d receive undefined.
Comments
It's really valuable for mistakes to result in clear errors rather than confusing but "valid" programs.
Even worse:
a receives 2. b, c, and d receive undefined.