UNPKG

@zstings/utils

Version:

javascript、typescript 工具函数库 文档地址 [utils 文档](https://zstings.github.io/utils/)

19 lines (18 loc) 355 B
/** * 是否是url * @param url 需要验证的内容,类型:string * @return Boolean * @throws 参数必须是string 参数不是string时触发 * @category URL * @example * ```ts * isURL('https://a.b.c') * // => true * ``` * @example * ```ts * isURL('123') * // => false * ``` */ export default function isURL(url: string): boolean;