Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

迭代器中关于loop的缺点阐述有误 #27

Open
isliuxiaoyu opened this issue Nov 12, 2022 · 1 comment
Open

迭代器中关于loop的缺点阐述有误 #27

isliuxiaoyu opened this issue Nov 12, 2022 · 1 comment

Comments

@isliuxiaoyu
Copy link

isliuxiaoyu commented Nov 12, 2022

for(let i in arr){...}不仅可以用于遍历对象,也可以用于遍历数组,其中i获取的是String类型的索引值

@isliuxiaoyu isliuxiaoyu changed the title 迭代器中loop缺点有误 迭代器中关于loop的缺点阐述有误 Nov 12, 2022
@kcfuler
Copy link

kcfuler commented Apr 19, 2023

数组也是对象

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants