<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ledsun</author_name>
  <author_url>https://blog.hatena.ne.jp/ledsun/</author_url>
  <blog_title>@ledsun blog</blog_title>
  <blog_url>https://ledsun.hatenablog.com/</blog_url>
  <categories>
    <anon>技</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>いろいろなSingletonを実装してみます。 関数 var getSingleton = (function() { var instance = null, init = function() { instance = { value: Math.random() } }; return function() { if (instance == null) { init(); } return instance; }; })(); var a = getSingleton(); var b = getSingleton(); console.log(a == b); //true cons…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fledsun.hatenablog.com%2Fentry%2F2013%2F10%2F22%2F165140&quot; title=&quot;JavaScriptでSigletonオブジェクトを実装してみる - @ledsun blog&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>2013-10-22 16:51:40</published>
  <title>JavaScriptでSigletonオブジェクトを実装してみる</title>
  <type>rich</type>
  <url>https://ledsun.hatenablog.com/entry/2013/10/22/165140</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
