☰
Debian Codegraph
@
0.1.1-5.1
0.1.1-5
/
/
vendor
/
static
/
moment
/
src
/
lib
/
utils
/
is-leap-year.js
☽
☼
vendor/static/moment/src/lib/utils/is-leap-year.js
code
plain
raw
Expat
JS Foundation and other contributors; Tim Wood, Iskren Chernev, Moment.js contributors
debian/copyright
1
export function isLeapYear(year) {
2
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
3
}