{"height":"190","published":"2011-07-29 17:18:01","author_name":"hokaccha","categories":["JavaScript"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F20110729%2F1311927481\" title=\"for in \u3068 Object.keys - hokaccha memo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"for in \u3068 Object.keys","url":"https://hokaccha.hatenablog.com/entry/20110729/1311927481","type":"rich","provider_url":"https://hatena.blog","version":"1.0","blog_title":"hokaccha memo","description":"for (var key in obj) { if (obj.hasOwnProperty(key) { ... } } \u3063\u3066\u3044\u3046\u306e\u306f Object.keys(obj).forEach(function(key) { ... }); \u3068\u7b49\u4fa1\u3002\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3068\u3063\u3066\u307f\u305f\u3002\u74b0\u5883\u306fnode.js v0.4.7\u3002 \u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306e\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u3002\u4e00\u5fdchasOwnProperty\u306a\u3057\u306efor in\u3082\u306f\u304b\u308b\u3002 var Benchmark = require('benchmark'); var suite = new Benchmark.Suite; var len = process.argv[2] || \u2026","provider_name":"Hatena Blog","blog_url":"https://hokaccha.hatenablog.com/","width":"100%","author_url":"https://blog.hatena.ne.jp/hokaccha/","image_url":null}