【文件属性】:
文件名称:leap-year:检查一年是否为a年
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-01 07:36:21
JavaScript
闰年
检查一年是否为a
安装
$ npm install leap-year
用法
import isLeapYear from 'leap-year' ;
isLeapYear ( 2014 ) ;
//=> false
isLeapYear ( 2016 ) ;
//=> true
原料药
isLeapYear(年?)
年
类型: number 默认值:当前年份
isLeapYear(日期?)
日期
类型: Date默认值: new Date()
【文件预览】:
leap-year-main
----index.test-d.ts(189B)
----.gitattributes(19B)
----.github()
--------workflows()
----test.js(278B)
----license(1KB)
----index.d.ts(300B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(351B)
----readme.md(401B)
----package.json(633B)