MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / isLeapYear

Function isLeapYear

core/src/components/datetime/utils/helpers.ts:9–11  ·  view source on GitHub ↗
(year: number)

Source from the content-addressed store, hash-verified

7 * otherwise.
8 */
9export const isLeapYear = (year: number) => {
10 return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
11};
12
13/**
14 * Determines the hour cycle for a user.

Callers 2

helpers.spec.tsFile · 0.90
getNumDaysInMonthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected