isnullemptyorwhitespace
v1.0.4
Published
to find out IS NULL Or Empty
Downloads
6
Readme
IsNullEmptyOrWhiteSpace
version 1.0.4
IsNullEmptyOrWhiteSpace is minimalized javascript.
It allows to check object is null or empty or contain white space
Installation
Node.js npm install isnullemptyorwhitespace
Bower bower install isnullemptyorwhitespace
Usage Example
const IsNullEmptyOrWhiteSpace=require('isnullemptyorwhitespace');
var s;
IsNullEmptyOrWhiteSpace(s); // Result ==> true
var date1=new Date();
IsNullEmptyOrWhiteSpace(date1); // Result ==> false
var arr=[];
IsNullEmptyOrWhiteSpace(arr); // Result ==> true
var arr1=[1,2,3];
IsNullEmptyOrWhiteSpace(arr1); // Result ==> false
var json={"name":"darshankumar"};
IsNullEmptyOrWhiteSpace(json); // Result ==> false
var emptyJson={};
IsNullEmptyOrWhiteSpace(emptyJson); // Result ==> true
var string="darshankumar";
IsNullEmptyOrWhiteSpace(string)); // Result ==> false
var emptyString="";
IsNullEmptyOrWhiteSpace(emptyString)); // Result ==> true
var number="2";
IsNullEmptyOrWhiteSpace(number); // Result ==> false
var nullValue=null;
IsNullEmptyOrWhiteSpace(nullValue); // Result ==> false
var def=undefined;
IsNullEmptyOrWhiteSpace(def); // Result ==> true
var boolean=false;
IsNullEmptyOrWhiteSpace(boolean);// Result ==> false
var boolean=false;
IsNullEmptyOrWhiteSpace(boolean);// Result ==> false
var funct=function(a){b=a};
IsNullEmptyOrWhiteSpace(funct);// Result ==> false
Copyright
Copyright (c) 2020 Darshankumar Shirke. See LICENSE for further details