Merge branch 'patch-1' of https://github.com/Karsten7/svelte into Karsten7-patch-1

pull/2988/head
Richard Harris 5 years ago
commit 44489c9ccb

@ -24,3 +24,9 @@ function addNumber() {
You can use similar patterns to replace `pop`, `shift`, `unshift` and `splice`.
> 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.
>
> ```js
> function addNumber() {
> numbers[numbers.length] = numbers.length + 1;
> }
> ```

Loading…
Cancel
Save