UNPKG

@minionorg/share

Version:
12 lines (11 loc) 246 B
/** * 判断是否为中文 * * @param {string} str 字符串 * @return {boolean} 中文则为真 * @example * isZH('中国') = true * isZH('string') = false */ declare function isZH(str: string): boolean; export default isZH;