@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
11 lines • 361 B
TypeScript
/**
* Checks if string is URL address or valid pathname of URL address
* @param str{String} - source string
* @return {boolean}
* @example
* // How to check if string is URL or pathname of URL?
* const isUrl = isStrUrl("myPage.php");
* console.log(isUrl); // => true
*/
export function isStrUrl(str: string): boolean;
//# sourceMappingURL=index.d.ts.map