title: SCRIPT5009: 'URLSearchParams' is undefined in IE 11
body: <p>I'm trying to execute the <a href="https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams" rel="noreferrer">URLSearchParams</a> but I get an error on IE 11 since it is not supported there. It's working perfectly in Chrome and Firefox.</p>
  
  <p>How can I get the equivalent functionality in IE 11?
  I am executing the code in Laravel 5.4.</p>
  
  <p>Here is the line of code which I'm trying to execute.</p>
  
  <pre><code>var urlParams = new URLSearchParams(window.location.search);
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>SCRIPT5009: 'URLSearchParams' is undefined</p>
  </blockquote>