When reviewing the ES6 docs, I noted that it is recommended to use the spread syntax over the more verbose Object.assign()
method. But, I am a bit confused as to how this is being accomplished.
Is object
in this case being broken down to key: value
pairs, after which the property on the right of the comma is either added or overwritten, and finally being reassembled?