반응형
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 | 29 | 30 | 31 |
Tags
- 알고리즘
- 수학
- dfs
- Crawling
- 그래프
- TCP
- Node.js
- 자바스크립트
- Algorithm
- javascript
- BFS
- 타입스크립트
- 소켓
- type challenge
- 크롤링
- HTTP
- Nestjs
- ip
- 타입 챌린지
- HTTP 완벽 가이드
- typescript
- 프로그래머스 레벨 2
- 프로그래머스
- 쉬운 문제
- 백준
- 가천대
- 레벨 1
- dp
- socket
- 문자열
Archives
- Today
- Total
목록IsUnion (1)
kakasoo
IsUnion
type IsPartitionSameEntire = T extends P ? P extends T ? true : false : false; type IsUnion = IsPartitionSameEntire extends true ? false : IsPartitionSameEntire extends false ? false : true; 조금 지저분한 풀이긴 하지만, 분산 법칙을 이용해서 푸는 방법이 있다. Equal 타입을 구현하다가 안 것인데, type Equal = X extends Y ? (Y extends X ? true : false) : false; type a5 = Equal; // boolean type a6 = Equal; // boolean Equal을 다음과 같이 X가 Y일 때 Y..
프로그래밍/TypeScript
2023. 4. 13. 01:01