You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get number from string, we need array because can get length from array. This is the key of this problem. So, we need converter to convert digit type to array.
To convert number to array, let's combine above types into single util type. In this type, we use recursive typing with template literal string. At each digit, we use Multiply10 to get proper digit and conver it to digitarray to express proper number.
I couldn't solve so I studied @Chen0x00 's answer.
0-9
, let's define digit type.length
from array. This is the key of this problem. So, we need converter to convert digit type to array.0
can be any value because it just forlength
property.Multiply10
to get proper digit and conver it to digitarray to express proper number.The text was updated successfully, but these errors were encountered: