front-standard-utils
Version:
29 lines (28 loc) • 591 B
TypeScript
/**
*
* @desc 判断是否为手机号
* @param str
* @returns Boolean
*/
export declare const isPhoneNum: (str: string) => boolean;
/**
*
* @desc 判断是否为URL地址
* @param str url地址
* @returns Boolean
*/
export declare const isUrl: (str: string) => boolean;
/**
*
* @desc 判断是否为邮箱
* @param str
* @returns Boolean
*/
export declare const isEmail: (str: string) => boolean;
/**
*
* @desc 判断是否为身份证号
* @param str
* @returns Boolean
*/
export declare const isIdCard: (str: string) => boolean;