mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +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)
|
||
|
}
|