<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unageanu</author_name>
  <author_url>https://blog.hatena.ne.jp/unageanu/</author_url>
  <blog_title>うなの日記</blog_title>
  <blog_url>https://unageanu.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>JavaScriptのオブジェクトはHashのように使えますが、素のままだと空かどうかを判定するのも一苦労なんだよなー。一行で書くとちょい長いので、関数が必要な感じ。 /** * ハッシュが空かどうか判定する。 */ function isEmpty(hash) { for ( var i in hash ) return false; return true; } ... out.innerHTML += '{} : ' + isEmpty({}) + &quot;&lt;br/&gt;&quot;; out.innerHTML += '{a:&quot;aa&quot;} : ' + isEmpty({a:&quot;aa&quot;}) + &quot;&lt;br/&gt;&quot;;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20090721%2F1248178329&quot; title=&quot; Hashが空か判定したい - うなの日記&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>2009-07-21 21:12:09</published>
  <title> Hashが空か判定したい</title>
  <type>rich</type>
  <url>https://unageanu.hatenablog.com/entry/20090721/1248178329</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
