function isNotWhitespace(token) {
  return (
    token != null &&
    token.type !== 'HTMLWhitespace' &&
    (token.type !== 'JSXText' || !!token.value.trim())
  )
}
Check whether the given token is a whitespace.
@param {Token|undefined|null} token The token to check.
@returns {boolean} `true` if the token is a whitespace.