Monday, April 2, 2018

What does the regex S mean in JavaScript?

What does /\S/ mean in a regex?



while (cur ! = null) {
if (cur.nodeType == 3 && ! /\S/. test(cur.nodeValue)) {
element. removeChild(cur);

} else if (cur. nodeType == 1) {
cleanWhitespace(cur);
}
}

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...