17. implement LastChar<T>

TypeScript

  -通过 / -执行

类似于FirstChar<T>,请实现LastChar<T>

type A = LastChar<'BFE'> // 'E'type B = LastChar<'dev'> // 'v'type C = LastChar<''> // never

争取5分钟以内搞定这个问题