@goodies/is-same-day
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

is-same-day

System Requirements

Installation

npm i @goodies/is-same-day
yarn add @goodies/is-same-day

Usage

import isSameDay from '@goodies/is-same-day'

const today = new Date()
const yesterday = new Date()

yesterday.setDate(today.getDate() - 1)

console.log(await isSameDay(today, today)) // true
console.log(await isSameDay(today, yesterday)) // false

Readme

Keywords

Package Sidebar

Install

npm i @goodies/is-same-day

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

14.6 kB

Total Files

6

Last publish

Collaborators

  • azurydev