DEV Community

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

Collapse
 
vijayakumarrg profile image
Vijaya Kumar Reddy Gajjala

Hi Harrison.

It is very nice article which highlights some of the unknown uses of spread operator. Thanks for this.

I think there is a typo in the code at 'const fruitsObject = { ...fruitsObject }'. Should it be const fruitsObject = { ...fruitsArray } ? Please check.

Thanks again
Vijay

Collapse
 
harrison_codes profile image
Harrison Reid

Right you are! Thanks for picking up on that, I’ve updated the post 😊.

Thanks for reading!