frontend/.pnpm-store/v3/files/91/4e9968cad8c21ddebe3e5ac97eb05008e800bea58417e4dccf9d03896450f7a89364375066936c05c72157718f2156ffd2bba568176cf513921ff65b80a346

18 lines
373 B
Plaintext

/**
* True iff there is no domain name in the hostname (no dots).
*
* Examples:
*
* ``` js
* isPlainHostName("www")
* // is true.
*
* isPlainHostName("www.netscape.com")
* // is false.
* ```
*
* @param {String} host The hostname from the URL (excluding port number).
* @return {Boolean}
*/
export default function isPlainHostName(host: string): boolean;