@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
13 lines • 458 B
TypeScript
/**
* Checks if a year is a leap year.
* @param {string} year - The year as a string.
* @returns {boolean} True if leap year, false otherwise.
*/
export default function isLeapYear(year: string): boolean;
/**
* Checks if a year is a leap year.
* @param {number} year - The year as a number.
* @returns {boolean} True if leap year, false otherwise.
*/
export default function isLeapYear(year: number): boolean;
//# sourceMappingURL=isLeapYear.d.ts.map