<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yum_fishing</author_name>
  <author_url>https://blog.hatena.ne.jp/yum_fishing/</author_url>
  <blog_title>iOSエンジニアのつぶやき</blog_title>
  <blog_url>https://yamato8010.hatenablog.com/</blog_url>
  <categories>
    <anon>Firebase</anon>
    <anon>Cloud Firestore</anon>
  </categories>
  <description>先日 Firestore のセキュリティールールで undefined かどうかの判定をするために下記のようなコードを書いていました👀 function isUndefined(data) { return data.hoge == undefined; } 実はこれ正しく動作しないので注意が必要です。サンプル実装などによく見かける下記のような null 判定はもちろん問題なく動作しますが、undefined ではできないみたいです。 function isUndefined(data) { return data.hoge == null; } 解決法 ググったら良い方法を発見できました✨ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyamato8010.hatenablog.com%2Fentry%2F2021%2F02%2F18%2F083000&quot; title=&quot;【Firestore】セキュリティールールでデータの undefined 判定 - iOSエンジニアのつぶやき&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-02-18 08:30:00</published>
  <title>【Firestore】セキュリティールールでデータの undefined 判定</title>
  <type>rich</type>
  <url>https://yamato8010.hatenablog.com/entry/2021/02/18/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
