UNPKG
persian-date-validate
Version:
latest (0.1.0)
0.1.0
Validate a Persian date
github.com/movahhedi/persian-date-validate
movahhedi/persian-date-validate
persian-date-validate
/
dist
/
index.cjs
3 lines
(2 loc)
•
201 B
JavaScript
View Raw
1
2
3
var
r=
require
(
"persian-leap"
);
exports
.
isPersianDateValid
=
function
(
e,n,a
){
if
(e<
1
)
return
!
1
;
if
(n<
1
||n>
12
)
return
!
1
;
var
i=r.
getDaysInPersianMonth
(e,n);
return
!(a<
1
||a>i)};
//# sourceMappingURL=index.cjs.map