Double '+' signs messing with !NaN in JS

前端 未结 0 1262
长情又很酷
长情又很酷 2021-01-30 15:36

Working a evaluator for Polish Notation and I was adding a way to distinguish if the string I got was a number or not using the isNaN function. This works fine, until you add +

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