title: Check if a string starts with any of the strings in an array
body: <p>In javascript, how can I check if a string starts with any of the strings in an array.</p>
  <p>For example,</p>
  <p>I have an array of strings,</p>
  <pre><code>const substrs = ['the', 'an', 'I'];
  </code></pre>
  <p>I have a string</p>
  <pre><code>const str = 'the car';
  </code></pre>
  <p>How can I check if str starts with any of the strings in substrs?</p>