title: How to check if a string contains any character from another string?
body: <p>How can I determine if any individual character in <code>src</code> matches any individual character in <code>restricted</code>? I have this JS method which does the job, but I'd like to improve it if I can:</p>
  
  <pre><code>function CheckRestricted(src, restricted)
  {
      for (var i = 0; i &lt; src.length; i++)
      {
          for (var j = 0; j &lt; restricted.length; j++)
          {
              if (src.charAt(i) == restricted.charAt(j))
                  return false;
          }            
      }
  
      return true;
  }
  </code></pre>
  
  <p>If this were C#, I could achieve this with LINQ in a single line:</p>
  
  <pre><code>bool CheckRestricted(string src, string restricted)
  {
      return src.Any(s =&gt; restricted.Contains(s));
  }
  </code></pre>
  
  <p>Is there some sort of similar functionality in JS that I'm unaware of?</p>
  
  <p><strong>EDIT:</strong> Sample use case:</p>
  
  <pre><code>CheckRestricted("ABCD", "!+-=;:'`"); //true
  CheckRestricted("ABCD!", "!+-=;:'`"); //false
  </code></pre>
  
  <p>It is predominantly used to disallow 'special characters'.</p>