From cc70414f34b28f001ab661472ff4b2086db5e329 Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Sun, 24 Apr 2022 08:54:04 +0800 Subject: [PATCH] Update site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- .../02-reactivity/04-updating-arrays-and-objects/text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md b/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md index c4ff659b9b..750d69ffe9 100644 --- a/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md +++ b/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md @@ -23,7 +23,7 @@ function addNumber() { } ``` -The same rule applies to array methods such as `pop`, `shift`, `splice` and to objects methods such as `Map.set`. +The same rule applies to array methods such as `pop`, `shift`, and `splice` and to objects 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.