Skip to content

Functions: asUrl()

ts
function asUrl(value): Url

Converts a string to a valid URL.

Parameters

ParameterTypeDescription
valuestringThe string to convert.

Returns

Url

The valid URL.