UNPKG

@n3okill/utils

Version:
8 lines (7 loc) 270 B
/** * Returns a value indicating whether a URL is relative. * A relative URL does not have host info part. * @param {string} url - the URL to be checked * @return {boolean} whether the URL is relative */ export declare function isUrlRelative(url: string): boolean;