first commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
null or undef
|
||||
|
||||
args
|
||||
1: any
|
||||
result
|
||||
boolean
|
||||
*/
|
||||
function isNullish(arg){
|
||||
if( arg===null ){
|
||||
return true;
|
||||
}else if( arg===undefined ){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export default isNullish;
|
||||
Reference in New Issue
Block a user