Merge pull request #2511 from lumosmind/patch-6

spread operator vs spread syntax
This commit is contained in:
Ilya Kantor 2021-03-13 01:43:17 +03:00 committed by GitHub
commit bf66ad6a82
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.
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