Skip to content

Commit 2b08c26

Browse files
committed
(docs) clean
1 parent b07ad60 commit 2b08c26

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,10 @@ this.rooms[i].typingUsers = [...this.rooms[i].typingUsers, typingUserId]
174174
this.rooms[i].typingUsers.push(typingUserId)
175175
```
176176

177-
- To add or replace an item inside an array, use `$set` method or spread operator
177+
- To add or replace an item inside an array, use spread operator
178178

179179
```javascript
180180
// DO THIS
181-
this.$set(this.rooms, roomIndex, room)
182-
183-
// OR DO THIS
184181
this.rooms[roomIndex] = room
185182
this.rooms = [...this.rooms]
186183

0 commit comments

Comments
 (0)