Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AquanJSW authored Nov 4, 2023
1 parent 5add938 commit 0a24179
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ while (!result.done) {
result = it.next();
}

console.log("已迭代序列的大小:", result.value); // 5
console.log(`已迭代序列的大小${result.value}`); // 5
```

> **备注**[反射性](https://zh.wikipedia.org/wiki/反射式编程)地知道特定对象是否是迭代器是不可能的。如果你需要这样做,请使用[可迭代对象](#可迭代对象).
Expand Down

0 comments on commit 0a24179

Please sign in to comment.