typescript convert string or string[] into int

后端 未结 0 785
星月不相逢
星月不相逢 2021-02-02 02:43

I have a variable that is type: string | stirng[] with name: chapterNumber

and I want it to be converted to number so I can increment it

相关标签:
回答
  • 消灭零回复
提交回复
热议问题