코드에서 :
if ( some_variable == null ){
// some_variable is either null or undefined
}
더 코드 :
if ( !some_variable ) {
// some_variable is either null, undefined, 0, NaN, false, or an empty string
}
코드에서 :
if ( some_variable == null ){
// some_variable is either null or undefined
}
더 코드 :
if ( !some_variable ) {
// some_variable is either null, undefined, 0, NaN, false, or an empty string
}