UNPKG
lixi-ui
Version:
latest (0.1.0)
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
A Component Library for Vue.js.
lixi-ui.cn
lingniker/lixi
lixi-ui
/
src
/
utils
/
shared.js
8 lines
(7 loc)
•
191 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
function
isDef
(
val
) {
return
val !==
undefined
&& val !==
null
; }
export
function
isKorean
(
text
) {
const
reg =
/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi
;
return
reg.
test
(text); }