<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>JavaScript で配列から Falsy な値をフィルターする際に Array.filter(Boolean) をよく使っていたのですが TypeScript だと型がうまく推論されなかったので TypeScript で配列から Falsy な値を取り除く方法を調べてたメモ 結論 TypeScript には is はあるが、〇〇以外 NOR を表すものがない TypeScript には現状 (v4.9.3 現在) NaN を表す型が無いので .filter(Boolean) の結果を型情報にすることはできなかった（NaN はあくまで number 型） 暗黙的な Falsy は 0 が削除…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2022%2F12%2F09%2F083000&quot; title=&quot;TypeScript 配列から Falsy な値をフィルタリングしたい…したかった… - かもメモ&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://m.media-amazon.com/images/I/51S38UhjBAL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-12-09 08:30:00</published>
  <title>TypeScript 配列から Falsy な値をフィルタリングしたい…したかった…</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2022/12/09/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
