available empty space in 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;
}