반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 타입스크립트
- HTTP
- Nestjs
- Crawling
- Algorithm
- dp
- 문자열
- typescript
- socket
- 자바스크립트
- type challenge
- 타입 챌린지
- 알고리즘
- 가천대
- 프로그래머스
- 쉬운 문제
- 크롤링
- BFS
- javascript
- HTTP 완벽 가이드
- 백준
- 수학
- 레벨 1
- dfs
- 소켓
- 그래프
- ip
- TCP
- Node.js
- 프로그래머스 레벨 2
Archives
- Today
- Total
목록타입 레벨에서의 join (1)
kakasoo
타입 레벨에서 문자열 Join 구현하기
문자열로 이루어진 배열을 받아 Join하는 타입을 구현했다. type ToString= T extends string ? T : never; type ToStringTuple= T extends string[] ? T : never; type Join = T extends [infer F, ...infer Rest] ? Rest extends [] ? `${ToString}` : `${ToString}${U}${Join}` : ''; https://kscodebase.tistory.com/709 타입 레벨에서 문자열 Join 구현하기 2 https://kscodebase.tistory.com/682 타입 레벨에서 문자열 Join 구현하기 type ToString= T extends string ? T :..
프로그래밍/TypeScript
2023. 4. 16. 19:13