UNPKG

abbott-methods

Version:

abbott,methods,method,functions,function

9 lines (7 loc) 269 B
import { someWhetherLeapYear } from './someWhetherLeapYear' /** * @description 二月的天数 * @param {Number} year * @returns {Number} */ export const someFebruaryDays = (year: number | string): number => (someWhetherLeapYear(~~String(year)) ? 29 : 28)