title: More efficient way of searching multiple arrays for singular item?
body: <p>I need to search multiple large arrays in search of one item. If that item is in at least one of the arrays, the result should be true. Between the three examples below, is one more efficient than the other? Or is there a more efficient way?</p>
  <pre><code>let arr1 = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]
  let arr2 = [&quot;d&quot;, &quot;e&quot;, &quot;f&quot;]
  let arr3 = [&quot;g&quot;, &quot;h&quot;, &quot;i&quot;]
  
  let q = &quot;h&quot;
  
  if arr1.contains(q) || arr2.contains(q) || arr3.contains(q) {
      print(&quot;y&quot;)
  }
  
  for arr in [arr1, arr2, arr3] {
      if arr.contains(q) {
          print(&quot;y&quot;)
          break
      }
  }
  
  if (arr1 + arr2 + arr3).contains(q) {
      print(&quot;y&quot;)
  }
  </code></pre>
  <p>And I suppose I should ask, if I'm able to make these arrays sets (if I can safely do that knowing they are all unique), would that change anything?</p>