Skip to content

Commit b855500

Browse files
authored
Update spread-operator.mdx
1 parent e200f1d commit b855500

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/technologies/javascript/spread-operator.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ In the example above, the two objects - `info1` and `info2` are merged into one
152152

153153
### Updating object properties
154154

155-
You can also update the properties of an object with the JavaScript spread operator.
156-
157-
Consider the example below:
155+
You can also update the properties of an object with the JavaScript spread operator. To update an object's properties using the spread operator, you can spread the original object inside a new object, and specify the new values for the properties you want to update, like this:
158156

159157
```js
160158
const book = {

0 commit comments

Comments
 (0)