spread operator vs spread syntax

it should be spread syntax 
https://javascript.info/rest-parameters-spread
This commit is contained in:
Mustafa Kemal Tuna 2021-03-08 15:43:00 +03:00 committed by GitHub
parent f6ae0b5a5f
commit d9d1023281
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ let clone = Object.assign({}, user);
It copies all properties of `user` into the empty object and returns it. It copies all properties of `user` into the empty object and returns it.
There are also other methods of cloning an object, e.g. using the [spread operator](info:rest-parameters-spread) `clone = {...user}`, covered later in the tutorial. There are also other methods of cloning an object, e.g. using the [spread syntax](info:rest-parameters-spread) `clone = {...user}`, covered later in the tutorial.
## Nested cloning ## Nested cloning