Back to Type Challenges

README.Ja

questions/00459-medium-flatten/README.ja.md

latest1.7 KB
Original Source
<!--info-header-start--><h1>Flatten </h1><blockquote><p>by zhouyiming <a href="https://github.com/chbro" target="_blank">@chbro</a></p></blockquote><p><a href="https://tsch.js.org/459/play/ja" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.md" target="_blank"></a> <a href="./README.zh-CN.md" target="_blank"></a> <a href="./README.ko.md" target="_blank"></a> </p><!--info-header-end-->

この課題では、受け取った配列をフラット化した型を出力する型を書く必要があります。

例えば:

ts
type flatten = Flatten<[1, 2, [3, 4], [[[5]]]> // [1, 2, 3, 4, 5]
<!--info-footer-start-->

<a href="../../README.ja.md" target="_blank"></a> <a href="https://tsch.js.org/459/answer/ja" target="_blank"></a> <a href="https://tsch.js.org/459/solutions" target="_blank"></a> <!--info-footer-end-->