Answers for "how to see for spaces in js"

3

javascript detect space in string

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

js find space in string

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

Code answers related to "how to see for spaces in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language