MCPcopy Create free account
hub / github.com/GoogleTrends/data / isLeapYear

Function isLeapYear

Pikaday/pikaday.js:116–120  ·  view source on GitHub ↗
(year)

Source from the content-addressed store, hash-verified

114 },
115
116 isLeapYear = function(year)
117 {
118 // solution by Matti Virkkunen: http://stackoverflow.com/a/4881951
119 return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
120 },
121
122 getDaysInMonth = function(year, month)
123 {

Callers 1

getDaysInMonthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected