(
date: DateArg<Date> & {},
options?: IsYesterdayOptions | undefined,
)
| 29 | * //=> true |
| 30 | */ |
| 31 | export function isYesterday( |
| 32 | date: DateArg<Date> & {}, |
| 33 | options?: IsYesterdayOptions | undefined, |
| 34 | ): boolean { |
| 35 | return isSameDay( |
| 36 | constructFrom(options?.in || date, date), |
| 37 | subDays(constructNow(options?.in || date), 1), |
| 38 | ); |
| 39 | } |
no test coverage detected