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.modern.js
3 lines
(2 loc)
•
216 B
JavaScript
View Raw
1
2
3
import
{getDaysInPersianMonth
as
r}
from
"persian-leap"
;
function
n
(
n,t,e
){
if
(n<
1
)
return
!
1
;
if
(t<
1
||t>
12
)
return
!
1
;
const
i=
r
(n,t);
return
!(e<
1
||e>i)}
export
{n
as
isPersianDateValid};
//# sourceMappingURL=index.modern.js.map