title: Check if a single character is a whitespace?
body: <p>What is the best way to check if a single character is a whitespace?</p>
  
  <p>I know how to check this through a regex.</p>
  
  <p>But I am not sure if this is the best way if I only have a single character.</p>
  
  <p>Isn't there a better way (concerning performance) for checking if it's a whitespace?</p>
  
  <p>If I do something like this. I would miss white spaces like tabs I guess?</p>
  
  <pre><code>if (ch == ' ') {
      ...
  }
  </code></pre>