title: How to detect language in JavaScript?
body: <p>I know that in Wordpress we can do the following:</p>
  
  <pre><code>preg_match("/\p{Arabic}/u",
  get_the_title())
  </code></pre>
  
  <p>How can we do this in JavaScript? Thanks in advance.</p>