javascript check if blank space

53

javascript check if blank space -

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

Comments

Submit
0 Comments