03. First Of Array
https://github.com/type-challenges/type-challenges/blob/master/questions/14-easy-first/README.md
https://ghaiklor.github.io/type-challenges-solutions/en/easy-first.html
문제
Implement a generic First<T>
that takes an Array T
and returns it’s first element’s type.
For example:
풀이
문제는 너무 간단했다. conditional types
만 알면 바로 해결할 수 있다.
Last updated