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.

6 lines (5 loc) 142 B
"use strict"; function isLeapYear(year) { return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; } exports.isLeapYear = isLeapYear;