how to catch empty space code example
Example: typescript string null or white space
function isEmptyOrSpaces(str){
return str === null || str.match(/^ *$/) !== null;
}
function isEmptyOrSpaces(str){
return str === null || str.match(/^ *$/) !== null;
}