Answers for "how to find white space in javascript"

-1

check whitespace in javascript

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

remove white space from string in js

"hello world".replace(/s/g, "");
Posted by: Guest on October-17-2021

Code answers related to "how to find white space in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language