chaîne de type null ou espace blanc

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