📜  for in vs for of - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:04.844000             🧑  作者: Mango

代码示例1
for in loops over enumerable property names of an object.

for of (new in ES6) does use an object-specific iterator and loops over the values generated by that.