ESday project icon

Plugins - IsLeapYear

IsLeapYear

IsLeapYear adds the isLeapYear method to EsDay indicating, if a date is a leap year.

Usage

Dependencies

IsLeapYear has no dependencies on other plugins.

Method signatures

esday().isLeapYear(): boolean

Examples

import { esday } from 'esday'
import isLeapYearPlugin from 'esday/plugins/isLeapYear'

esday.extend(isLeapYearPlugin)

esday('2000-01-01').isLeapYear()
// Returns true