<?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>const fun = () =&gt; {}; fun?.(console.log('hoge')); ↑この時は console.log('hoge') が評価され、ログに hoge と表示される。 const notFun = undefined; notFun?.(console.log('hoge')); ↑この時 console.log('hoge') は評価されない。つまりログにも hoge と出力されない。 || 演算子や &amp;&amp; 演算子はもう見慣れたから短絡評価される感覚があるけど、オプショナルチェーン演算子はまだ短絡評価されるという感覚が薄い。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pandanoir.info%2Fentry%2F2023%2F04%2F09%2F075433&quot; title=&quot;オプショナルチェーン演算子は短絡評価される - 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>2023-04-09 07:54:33</published>
  <title>オプショナルチェーン演算子は短絡評価される</title>
  <type>rich</type>
  <url>https://www.pandanoir.info/entry/2023/04/09/075433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
