1.0.2 • Published 3 years ago

@octanium91/leap-year v1.0.2

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

npm_module_leap_year

node package https://www.npmjs.com/package/@octanium91/leap-year

  • Return boolean true if year leap or false if year not leap
  • @param {int} year - year in 4 numbers (eg. 1991 or 2020)
  • @return {boolean} return boolean value

use:

import leapYear from '@octanium91/leap-year'

console.log("2021 is leap?", leapYear(2021))