请教javascript有没有string.IsNullOrEmpty

请问javascript有没有string.IsNullOrEmpty如题,javascript有没有string.IsNullOrEmpty。如果没有,有没有什

请问javascript有没有string.IsNullOrEmpty
如题,javascript有没有string.IsNullOrEmpty。如果没有,有没有什么好的代码?

先答先得分!

[解决办法]
null和empty都为false
[解决办法]
js更简单

c#:
if (string.IsNullOrEmpty(str)) ...

js:
if (!str) ...