39. implement ToNumber<T>
Share
- accepted / - tried
Implement ToNumber<T>
to get an integer number type from integer string.
type A = ToNumber<'1'> // 1type B = ToNumber<'40'> // 40type C = ToNumber<'0'> // 0
we can just consider smaller numbers