UNPKG

date-manip

Version:

A lightweight JavaScript date utility library that provides modularity, high performance, and additional features. It supports various date operations, including date addition and subtraction, formatting, comparison, etc.

7 lines (6 loc) 125 B
function isLeapYear(year) { return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; } export { isLeapYear as i };