Monday, 2 April 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

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...