javascript check if blank space

55

javascript check if blank space -

function isEmptyOrSpaces(str){
    return str === null || str.match(/^ *$/) !== null;
}

Comments

Submit
0 Comments