URL
Funkcia provides a safe URL
modue to work with URL parsing without breaking your application.
SafeURL
SafeURL provides a safe wrapper around JavaScript's native URL constructor, returning a Result
type instead of throwing exceptions, preserving all signature overloads of the original constructor.
of
Creates a new URL
object representing the URL
defined by the parameters, wrapped in a Result
. If the given base URL
or the resulting URL
are not valid URL
s, returns a Result.Error
with a TypeError
.
Last updated
Was this helpful?