16. implement FirstChar<T>
分享给更多人
-通过 / -执行
请实现FirstChar<T>
返回头文字type。
type A = FirstChar<'BFE'> // 'B'type B = FirstChar<'dev'> // 'd'type C = FirstChar<''> // never
-通过 / -执行
请实现FirstChar<T>
返回头文字type。
type A = FirstChar<'BFE'> // 'B'type B = FirstChar<'dev'> // 'd'type C = FirstChar<''> // never