Skip to content

[F] isUrl

function isUrl(path): boolean

Determines whether a path starts with a URL scheme (e.g. starts with http://, ftp://, file://, etc.).

Parameters

ParameterType
pathstring

Returns

boolean