Answers for "javascript detect space in string"

2

javascript detect space in string

if(str.indexOf(' ') >= 0){
    console.log("contains spaces");
}
Posted by: Guest on November-14-2020

Code answers related to "javascript detect space in string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language