TypeScript 【TypeScript】ユニオン(Union)型の判定方法!typeof・in・instanceofを使い分けよう 2025-10-12 nakamuuu nakamuuublog