@wordpress/url
Version:
WordPress URL utilities.
17 lines • 431 B
TypeScript
/**
* Determines whether the given string looks like a URL.
*
* @param 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 Whether or not it looks like a URL.
*/
export declare function isURL(url: string): boolean;
//# sourceMappingURL=is-url.d.ts.map