Solved
Forum Discussion
bb1832j
6 years agoOccasional Contributor
I am not just looking for Child objects that are of TextNode ObjectType. I am also looking for TextNode types that have an ObjectIndentifier of a digit(s) without any letters. That is the reason I am trying to use a RegExp.
tristaanogre
6 years agoEsteemed Contributor
You could add an additional clause to the if to check is a number. Use isNaN (https://www.w3schools.com/jsref/jsref_isnan.asp)and, if it returns false, then it's a numeric value.