function isSameDay
isSameDay(
a: Date,
b: Date
): boolean

Checks whether a and b fall on the same local day.

Parameters

a: Date
b: Date

Return Type

boolean

Usage

import { isSameDay } from "src/utils/chat/time.ts";