Back to Type Challenges

README.Ko

questions/00459-medium-flatten/README.ko.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/ko" 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.ja.md" target="_blank"></a> </p><!--info-header-end-->

주어진 배열을 플랫한 배열 타입으로 바꾸는 Flatten 타입을 구현하세요.

예시:

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

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