<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>monjudoh</author_name>
  <author_url>https://blog.hatena.ne.jp/monjudoh/</author_url>
  <blog_title>monjudoh’s diary</blog_title>
  <blog_url>https://monjudoh.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>@rosylillyが気にしていた のでまとめた。 built-in/DOM objectのprototype拡張による弊害 追加したプロパティ/メソッドがfor inで列挙される var obj = {a:1}; for (var i in obj) { console.log(i); } こうするとaだけ出るはずが、 Object.prototype.b=function(){}; こうした後だとa,bが出てしまうって奴ですね。 そのまま代入しないでObject.defineProperty/definePropertiesでenumerable:falseのプロパティとして定義すれば列挙…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmonjudoh.hatenablog.com%2Fentry%2F20120904%2F1346764216&quot; title=&quot;JavaScriptでのbuilt-in/DOM objectのprototype拡張 - monjudoh’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-09-04 22:10:16</published>
  <title>JavaScriptでのbuilt-in/DOM objectのprototype拡張</title>
  <type>rich</type>
  <url>https://monjudoh.hatenablog.com/entry/20120904/1346764216</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
