spread operator vs spread syntax
it should be spread syntax https://javascript.info/rest-parameters-spread
This commit is contained in:
parent
f6ae0b5a5f
commit
d9d1023281
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.
|
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue