Back to Type Challenges

README.Ko

questions/03060-easy-unshift/README.ko.md

latest2.1 KB
Original Source
<!--info-header-start--><h1>Unshift </h1><blockquote><p>by jiangshan <a href="https://github.com/jiangshanmeta" target="_blank">@jiangshanmeta</a></p></blockquote><p><a href="https://tsch.js.org/3060/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-->

Array.unshift의 타입 버전을 구현하세요.

예시:

typescript
type Result = Unshift<[1, 2], 0> // [0, 1, 2]
<!--info-footer-start-->

<a href="../../README.ko.md" target="_blank"></a> <a href="https://tsch.js.org/3060/answer/ko" target="_blank"></a> <a href="https://tsch.js.org/3060/solutions" target="_blank"></a> <hr><h3>관련된 문제들</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00533-easy-concat/README.ko.md" target="_blank"></a> <a href="https://github.com/type-challenges/type-challenges/blob/main/questions/03057-easy-push/README.ko.md" target="_blank"></a> <!--info-footer-end-->