{"author_name":"earu","author_url":"https://blog.hatena.ne.jp/earu/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-sasaki.net%2Fentry%2F20120607%2F1339057677\" title=\"for-of\u30eb\u30fc\u30d7 - \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Firefox","JavaScript"],"blog_title":"\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u96d1\u8a18","type":"rich","provider_url":"https://hatena.blog","image_url":null,"provider_name":"Hatena Blog","url":"https://k-sasaki.net/entry/20120607/1339057677","title":"for-of\u30eb\u30fc\u30d7","height":"190","published":"2012-06-07 17:27:57","blog_url":"https://k-sasaki.net/","description":"Firefox13\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u3001ECMAScript6\u306e\u4ed5\u69d8\u3067\u3042\u308b\"for-of\"\u30eb\u30fc\u30d7\u3068\u3044\u3046\u306e\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u3057\u3044\u3002\u65e9\u901f\u8a66\u3059\u3002 var arr = [ 3,5,7 ]; arr.foo = \"hello\"; for(var i in arr){ console.log(i); // 0 , 1 , 2 , foo } for(var i of arr){ console.log(i) // 3 , 5 , 7 } \u3068\u306a\u308b\u3002 for-in\u30eb\u30fc\u30d7\u306e\u65b9\u306fkey\u3092\u53d6\u308a\u51fa\u3059\u306e\u306b\u5bfe\u3057\u3001for-of\u30eb\u30fc\u30d7\u306fvalue\u3092\u53d6\u308a\u51fa\u305b\u308b\u3002key\u6307\u5b9a\u305b\u305a\u306b\u5024\u53d6\u308a\u51fa\u305b\u308b\u306e\u306f\u4fbf\u5229\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002 var a\u2026","version":"1.0","width":"100%"}