Note: This differs from
/\s/.test(ch)
(usually considered the determiner of what is white space in JavaScript) in that it does not
include ZWNBSP (U+FEFF) but rather includes NEXT LINE (U+0085)
Parameters
ch: string
Single character or a string of characters
Returns boolean
true if the string consists of one or more white space characters and no other
characters, false otherwise
Determines whether a string contains one or more white space characters and no other characters.
This implementation uses dotnet's
Char.IsWhiteSpace
definition of white space:Note: This differs from
/\s/.test(ch)
(usually considered the determiner of what is white space in JavaScript) in that it does not include ZWNBSP (U+FEFF) but rather includes NEXT LINE (U+0085)