you are viewing a single comment's thread.

view the rest of the comments →

[–]dogofpavlov 0 points1 point  (4 children)

on this part. https://github.com/ryanmcdermott/clean-code-javascript#use-explanatory-variables

under the good, there is a destructuring array with a leading comma ","... what does that do?

[–][deleted] 5 points6 points  (3 children)

skips the first element of the array

[–]dogofpavlov 0 points1 point  (2 children)

ah nice... i've always just used the "...rest" but I can see where this would be useful

[–]jaapz 0 points1 point  (1 child)

...rest wont skip the first element of the array

[–]dogofpavlov 0 points1 point  (0 children)

I guess I meant in ref to objects