ログイン
新規登録
コース一覧
作品
有料プラン
TypeScript
Union 型と narrowing
プロ
複数の型を許す Union 型と、typeof・in・Array.isArray などで型を絞り込む narrowing を学びましょう。
union型
narrowing
typeof
振り返り
学べること一覧
複数の型を許す
プロ
決まった値だけの union
プロ
typeof で絞り込む
プロ
in とプロパティ判定
プロ
Array.isArray と truthy 絞込
プロ
filter で配列を絞り込む
プロ
union を受け取る関数
プロ
まとめ(決済処理の分岐)
プロ
「Union 型と narrowing」の振り返り
プロ