UNPKG
decojs
Version:
latest (0.9.1)
0.9.1
0.9.0
0.8.1
0.8.0
0.7.1
0.7.0
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
Scalable frontend architecture
github.com/decojs/DecoJS
decojs/DecoJS
decojs
/
Source
/
deco
/
qvc
/
constraints
/
NotEmpty.js
13 lines
(10 loc)
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
define
([],
function
(
){
function
NotEmpty
(
attributes
){ }
NotEmpty
.
prototype
.
isValid
=
function
(
value
){
if
(value ==
null
)
return
false
;
if
(
typeof
value ==
"string"
&& value.
length
==
0
)
return
false
;
return
true
; };
return
NotEmpty
; });