check condition for empty and blank spaces javascript 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;
}