isFileProtocol

isFileProtocol(href) returns true when href starts with file://. Part of pota/use/url.

Arguments

Argument Type Description
href string The URL to check.

Returns: booleantrue when href starts with file://.