import parsedate from "./parsedate";
export default function isleapyear(val) {
var date = parsedate(val);
var year = date.getFullYear();
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
}
Copyright 2015-2021 JC Fisher
import parsedate from "./parsedate";
export default function isleapyear(val) {
var date = parsedate(val);
var year = date.getFullYear();
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
}