🏠 New in Low Baseline Support: URL.canParse()

December 7, 2023

caniuse · mdn · spec

The URL.canParse() static method checks whether a URL can be parsed into a valid URL object. It’s an alternative to calling new URL() in a try…catch statement.

Source features