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.
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
Right you are! Thanks for picking up on that, I’ve updated the post 😊.
Thanks for reading!