UNPKG

util-helpers

Version:

一个基于业务场景的工具方法库

16 lines (15 loc) 354 B
/** * 检测值是否为邮政编码,6位数字 * * @alias module:Validator.isPostcode * @since 1.1.0 * @param {*} value 要检测的值 * @returns {boolean} 值是否为邮政编码 * @example * * isPostcode('101111'); // true * isPostcode('123'); // false * */ declare function isPostcode(value: any): boolean; export default isPostcode;