Is //(typeof(myVar) != “undefined”)// logically equivalent to the truthy //if (myVar)?

后端 未结 0 1135
名媛妹妹
名媛妹妹 2020-12-11 11:39

Over a large project I do a lot of exception handling by explicitly checking whether a variable has been set using typeof. It\'s a bit verbose and I\'d like to change my hab

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