UNPKG

abbott-methods

Version:

abbott,methods,method,functions,function

7 lines (6 loc) 220 B
/** * @description 是否闰年 * @param {Number} year * @returns {Boolean} */ export const someWhetherLeapYear = (year: number | string): boolean => (+year % 4 === 0 && +year % 100 !== 0) || +year % 400 === 0