UNPKG

@wordpress/url

Version:
17 lines 442 B
/** * Determines whether the given string looks like a URL. * * @param {string} url The string to scrutinise. * * @example * ```js * const isURL = isURL( 'https://wordpress.org' ); // true * ``` * * @see https://url.spec.whatwg.org/ * @see https://url.spec.whatwg.org/#valid-url-string * * @return {boolean} Whether or not it looks like a URL. */ export function isURL(url: string): boolean; //# sourceMappingURL=is-url.d.ts.map