title: js - check if string doesn't contain given characters
body: <p>I need to validate username that could not contain these characters:</p>
  
  <pre><code>var restricted = [' ','`','~','@','#','$','%','^','&amp;','*','(',')','+','=','|','\\',"'",'"',']','[','{','}',':',';','&lt;',',','&gt;','?','/',0,1,2,3,4,5,6,7,8,9];
  </code></pre>
  
  <p>How could I deal with this problem?</p>