【文件属性】:
文件名称:check-leap-year:检查一年是否为闰年
文件大小:123KB
文件格式:ZIP
更新时间:2021-08-04 20:08:57
leap-year leap-year-or-not leap-year-check JavaScript
是闰年
这个包是为。
安装和使用
npm i check-leap-year
你可以在看到一个使用
const isLeapYear = require ( 'check-leap-year' ) ;
console . log ( isLeapYear ( ) ) ;
console . log ( isLeapYear ( 2024 ) ) ;
console . log ( isLeapYear ( new Date ( ) ) ) ;
console . log ( isLeapYear ( new Date ( '12-10-2024' ) ) ) ;
【文件预览】:
check-leap-year-main
----.github()
--------workflows()
----yarn.lock(72KB)
----.eslintrc.js(459B)
----test.js(224B)
----assets()
--------cover.jpg(90KB)
----README.md(473B)
----.gitignore(14B)
----.prettierrc.js(109B)
----index.js(422B)
----package.json(897B)