ESday project icon

Plugins - IsYesterday

IsYesterday

IsYesterday adds the isYesterday method to EsDay indicating, if a date is tomorrow.

Usage

Dependencies

IsYesterday has no dependencies on other plugins.

Method signatures

esday().isYesterday(): boolean

Examples

import { esday } from 'esday'
import isYesterdayPlugin from 'esday/plugins/isYesterday'

esday.extend(isYesterdayPlugin)

esday().isYesterday()
// Returns false

esday().subtract(1, 'day').isYesterday()
// Returns true