Answers for "blank space in javascript"

2

javascript check if blank space

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

remove blank space javascript

str.replaceAll(/\s/g,'')

.replace(/ /g,'')
Posted by: Guest on May-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language