static String getArrayElementStringValue ( Node n ) { return ( NodeUtil . isNullOrUndefined ( n ) || n . isEmpty ( ) ) ? "" : getStringValue ( n ) ; }
When converting arrays to string using Array . prototype . toString or Array . prototype . join the rules for conversion to String are different than converting each element individually . Specifically null and undefined are converted to an empty string .