title: How to detect if URL() constructor is supported by browsers?
body: <p>I want to detect if a browser support the URL() constructor.</p>
  
  <p>I want to use it like this:</p>
  
  <pre><code>const url = new URL(urlString, [baseURLstring])
  </code></pre>
  
  <p>I can't find a proper method to check if it's supported by browser?</p>