DEV Community

Discussion on: 3 Weird Things You (Probably) Didn't Know You Can Do With The JavaScript Spread Operator 🥳

Collapse
 
thibpat profile image
Thibaut Patel

Thanks for sharing the article Harrison!
One small comment: in your last example the object should start with the key zero for the character 'a' instead of one.

Collapse
 
harrison_codes profile image
Harrison Reid

Good catch! Thanks for pointing that out - I’ve updated the post 🍻

Collapse
 
thibpat profile image
Thibaut Patel

Thanks for updating, and thanks for just writing this! I didn't know about the first pattern 🙏