Skip to content

Commit e78e498

Browse files
committed
remove v-for object iteration order warning since the order is
specified in ES2015+
1 parent fd0ee9f commit e78e498

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/guide/essentials/list.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ You can also use `of` as the delimiter instead of `in`, so that it is closer to
134134

135135
## `v-for` with an Object
136136

137-
You can also use `v-for` to iterate through the properties of an object.
137+
You can also use `v-for` to iterate through the properties of an object. The iteration order will be based on the result of calling `Object.keys()` on the object:
138138

139139
<div class="composition-api">
140140

@@ -198,10 +198,6 @@ And another for the index:
198198

199199
</div>
200200

201-
:::tip Note
202-
When iterating over an object, the order is based on the enumeration order of `Object.keys()`, which has only been well-defined in modern versions of ECMAScript and could be inconsistent in older JavaScript engines.
203-
:::
204-
205201
## `v-for` with a Range
206202

207203
`v-for` can also take an integer. In this case it will repeat the template that many times, based on a range of `1...n`.

0 commit comments

Comments
 (0)