element-plus/packages/utils/isDef.ts
JeremyWuuuuu 44b641c4a7 fix(project):fix gc.sh generating wrong format templates
fix(utils):fix utils linting issues
2020-07-29 15:23:55 +08:00

8 lines
223 B
TypeScript

export function isDef(val: unknown): boolean {
return val !== undefined && val !== null
}
export function isKorean(text: string): boolean {
const reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi
return reg.test(text)
}