程序员笔记
程序员笔记
Tuesday, September 11, 2018
js is null check
We can check null by
===
if
(
value
===
null
){
}
Just by using
if
if
(
value
)
{
}
will evaluate to true if
value is not
:
null
undefined
NaN
empty string ("")
false
0
https://stackoverflow.com/questions/6003884/how-do-i-check-for-null-values-in-javascript
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment