how to check if character is in string regardless of whitespace javascript code example
Example: js find space in string
if(str.indexOf(' ') >= 0){
console.log("contains spaces");
}
if(str.indexOf(' ') >= 0){
console.log("contains spaces");
}