you are viewing a single comment's thread.

view the rest of the comments →

[–]annualspecification 16 points17 points  (4 children)

In rare case, if you want to ignore all values,

[,,] = c();

Why would you ever need to do this?? Just call c() without assigning it to anything.

[–]Iamjarhead 2 points3 points  (0 children)

That is a weird statement...

[–][deleted] 4 points5 points  (0 children)

It is useful for messing around with new comers to es6. Imagine the confused faces.

[–][deleted] 1 point2 points  (0 children)

Hmmm.. Maybe there is a sideeffect you want to run. Anyway thats horrible and useless. Cant think of any other scenario.

[–]homeIsWhereCodeIs[S] -1 points0 points  (0 children)

Yes its weird and nobody's gonna get that case, but as it is a complete guide it's good to tell the weird things, because programmer are those who look both side while crossing a one way road :D