[docs] fix typo (#8180)

pull/8190/head
Josh 2 years ago committed by GitHub
parent be38cec3c1
commit aa98397440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,7 +23,7 @@ function addNumber() {
}
```
The same rule applies to array methods such as `pop`, `shift`, and `splice` and to objects methods such as `Map.set`, `Set.add`, etc.
The same rule applies to array methods such as `pop`, `shift`, and `splice` and to object methods such as `Map.set`, `Set.add`, etc.
Assignments to *properties* of arrays and objects — e.g. `obj.foo += 1` or `array[i] = x` — work the same way as assignments to the values themselves.
@ -51,4 +51,4 @@ quox(obj);
...won't trigger reactivity on `obj.foo.bar`, unless you follow it up with `obj = obj`.
A simple rule of thumb: the updated variable must directly appear on the left hand side of the assignment.
A simple rule of thumb: the updated variable must directly appear on the left hand side of the assignment.

Loading…
Cancel
Save