I want to detect if a browser support the URL() constructor.
I want to use it like this:
const url = new URL(urlString, [baseURLstring])
I can't find a proper method to check if it's supported by browser?
I want to detect if a browser support the URL() constructor.
I want to use it like this:
const url = new URL(urlString, [baseURLstring])
I can't find a proper method to check if it's supported by browser?