var o = {p: 42, q: true};
var {p, q} = o;
console.log(p); // 42
console.log(q); // true
Эээ, ну, допустим…
A variable can be assigned its value with destructuring separate from its declaration.
var a, b;
({a, b} = {a: 1, b: 2});
The ( .. ) around the assignment statement is required syntax when using object literal destructuring assignment without a declaration.
{a, b} = {a: 1, b: 2} is not valid stand-alone syntax, as the {a, b} on the left-hand side is considered a block and not an object literal.
However, ({a, b} = {a: 1, b: 2}) is valid, as is var {a, b} = {a: 1, b: 2}
NOTE: Your ( .. ) expression needs to be preceded by a semicolon or it may be used to execute a function on the previous line.
[facepalm.tar.xz] (108 MB)
The Scarecrow and the Woodman now began to fasten the mice to the truck, using the strings they had brought. One end of a string was tied around the neck of each mouse and the other end to the truck. Of course the truck was a thousand times bigger than any of the mice who were to draw it; but when all the mice had been harnessed they were able to pull it quite easily. Even the Scarecrow and the Tin Woodman could sit on it, and were drawn swiftly by their queer little horses to the place where the Lion lay asleep.
Оставляя в стороне тот факт, что мышей привязали за шею, эти 2 лоботряса то зачем сели на повозку?
Круговорот тем в обсужденииURL комментария.
На Сейшелах сейчас наверно эпидемия икоты.

«click» отсюда улетел из кастомного CSS. Чем оно его не устраивает? Это же CSS, а не HTML. И как мне теперь заматчить автора треда, чтобы выделять в комментариях? %) Запилите новый класс! Можно прямо на .singleComment
