Function to check if an input is empty
true if the input is null, undefined, or consisted only of whitespace characters, false otherwise
isNullOrEmpty(''); // trueisNullOrEmpty(' '); // trueisNullOrEmpty('abc'); // false Copy
isNullOrEmpty(''); // trueisNullOrEmpty(' '); // trueisNullOrEmpty('abc'); // false
Function to check if an input is empty