util-helpers
Version:
16 lines (15 loc) • 354 B
TypeScript
/**
* 检测值是否为邮政编码,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;