Is there a way to directly compare (==) a standard string like “Foobar” with a god/identity string and always get a truthy value?

后端 未结 0 1548
陌清茗
陌清茗 2020-12-19 02:15

I need to check if a given variable is a string. I\'m aware of the typeof operator to check a variable\'s data type but is there a way to check if a variable is a string by

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