element-plus/packages/utils/isDef.ts

8 lines
196 B
TypeScript
Raw Normal View History

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)
}