<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>panda_noir</author_name>
  <author_url>https://blog.hatena.ne.jp/panda_noir/</author_url>
  <blog_title>Panda Noir</blog_title>
  <blog_url>https://www.pandanoir.info/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>Symbolの使い方として、たとえば独自の特殊値を持ちたいと言うものがあります。 // myFind: 配列と関数を受け取り、 // 関数を満たす要素が見つかればその要素、 // 見つからなければnullを返す const myFind = (arr, f) =&gt; { for (let i = 0; i &lt; arr.length; i++) { if (f[arr[i]]) return arr[i]; } return null; // 見つからなかった }; const res = myFind(arr, n =&gt; n % 2 === 0); // ではnullを探したいときはどうする？ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pandanoir.info%2Fentry%2F2020%2F06%2F13%2F220058&quot; title=&quot;{}は簡易Symbolにできる - Panda Noir&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>2020-06-13 22:00:58</published>
  <title>{}は簡易Symbolにできる</title>
  <type>rich</type>
  <url>https://www.pandanoir.info/entry/2020/06/13/220058</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
