Skip to content

Commit d9d1023

Browse files
authored
spread operator vs spread syntax
it should be spread syntax https://javascript.info/rest-parameters-spread
1 parent f6ae0b5 commit d9d1023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/04-object-basics/02-object-copy/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ let clone = Object.assign({}, user);
186186
187187
It copies all properties of `user` into the empty object and returns it.
188188
189-
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.
189+
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.
190190
191191
## Nested cloning
192192

0 commit comments

Comments
 (0)