Answers for "if only white spaces js"

1

javascript check if blank space

function isEmptyOrSpaces(str){
    return str === null || str.match(/^ *$/) !== null;
}
Posted by: Guest on July-01-2021
-1

check whitespace in javascript

if (/s/.test(str)) {
    // It has any kind of whitespace
}
Posted by: Guest on August-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language