Back to Type Challenges

README.Ko

questions/00529-medium-absolute/README.ko.md

latest1.8 KB
Original Source
<!--info-header-start--><h1>Absolute </h1><blockquote><p>by Andrey Krasovsky <a href="https://github.com/bre30kra69cs" target="_blank">@bre30kra69cs</a></p></blockquote><p><a href="https://tsch.js.org/529/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-->

number, string, 혹은 bigint을 받는 Absolute 타입을 만드세요. 출력은 양수 문자열이어야 합니다.

예시:

ts
type Test = -100
type Result = Absolute<Test> // expected to be "100"
<!--info-footer-start-->

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