title: fastest way to detect if duplicate entry exists in javascript array?
body: <pre><code>var arr = ['test0','test2','test0'];
  </code></pre>
  
  <p>Like the above,there are two identical entries with value "test0",how to check it most efficiently?</p>