Skip to content

Url.functions.isUrl

fx-fetch


fx-fetch / Url / isUrl

isUrl(value): value is Url

Defined in: packages/fx-fetch/src/Url/isUrl.ts:19

Checks if the given value is a Url.

unknown

value is Url

import { Url } from 'fx-fetch';
const url = Url.make('https://api.example.com');
Url.isUrl(url); // true
Url.isUrl('not a url'); // false

0.1.0