mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
8 lines
196 B
TypeScript
8 lines
196 B
TypeScript
export function isDef(val) {
|
|
return val !== undefined && val !== null
|
|
}
|
|
export function isKorean(text: string) {
|
|
const reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi
|
|
return reg.test(text)
|
|
}
|