ユニオン型を使った配列で、型を絞り込むために適切な方法はどれですか? ```typescript let mixedData: (string | number)[] = ["hello", 42, "world"]; ```