Files
NapCatQQ/.pnpm-store/v3/files/1c/bb056f5b94120ee00b63fc65481c6bc21b718ebaac984f9307292e0af9d5504eb29dbed17f030008f33ceb5a772b706aa9f103faa41c0b5c51bc1ab6772adb
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

27 lines
716 B
Plaintext

/**
* Check if the year is a leap year
*
* 校验是否为闰年
*
* @example
* ```js
* import { isLeapYear } from 'is-what-type';
*
* isLeapYear(2000); // true
* isLeapYear(2020); // true
* isLeapYear(1900); // false
* isLeapYear(2021); // false
* isLeapYear(new Date(2000, 0, 1)); // true
* isLeapYear(new Date(2020, 0, 1)); // true
* isLeapYear(new Date(1900, 0, 1)); // false
* isLeapYear(new Date(2021, 0, 1)); // false
* isLeapYear('2000'); // false
* isLeapYear(null); // false
* isLeapYear(undefined); // false
* ```
*
* @param value - The value to check
* @returns `true` if the value is a leap year, `false` otherwise
*/
export declare function isLeapYear(value: unknown): boolean;