DEV Community

Discussion on: 3 Ways to Clone Objects in JavaScript

Collapse
 
evolutionxbox profile image
Jonathan Cousins

I don't think there is a difference aside from syntax in this case. The triple dot expression ... also means rest which does not mean Object.assign.

For more information see 2ality.com/2016/10/rest-spread-pro...