Merge pull request #2511 from lumosmind/patch-6
spread operator vs spread syntax
This commit is contained in:
commit
bf66ad6a82
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue