@ohayojp/util
Version:
Universal toolset of ohayojp.
13 lines (12 loc) • 521 B
TypeScript
/** 是否为数字 */
export declare function isNum(value: string | number): boolean;
/** 是否为整数 */
export declare function isInt(value: string | number): boolean;
/** 是否为小数 */
export declare function isDecimal(value: string | number): boolean;
/** 是否为身份证 */
export declare function isIdCard(value: string): boolean;
/** 是否为手机号 */
export declare function isMobile(value: string): boolean;
/** 是否URL地址 */
export declare function isUrl(url: string): boolean;