3 ms·
There's a second overload that takes a base: https://developer.mozilla.org/en-US/docs/Web/API/URL/canParse_static https://developer.mozilla.org/en-US/docs/Web/
by mmastrac 3y ago
There's a second overload that takes a base:
https://developer.mozilla.org/en-US/docs/Web/API/URL/canParse_static https://developer.mozilla.org/en-US/docs/Web/API/URL/canPars...
- Sephr 3y agoThat's quite useful! I'm going to integrate that into my code and fallback to the previous implementation if canParse() is not available.