UNPKG

abbott-methods

Version:

abbott,methods,method,functions,function

9 lines (8 loc) 210 B
/** * @description 保留中文 * @param {Number|String} string * @returns {String} */ export const holdCn = (string: string): string => { return String(string).replace(/[^\u4e00-\u9fa5]/g, '') }