mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
Refactor
This commit is contained in:
parent
75d56ff255
commit
49734661dc
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export function DateUTC(time: number[]): Date {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isTimeSame(a: Date, b: Date): boolean {
|
export function isTimeSame(a: Date, b: Date): boolean {
|
||||||
return (a.getTime() - b.getTime()) === 0;
|
return a.getTime() === b.getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isTimeBefore(a: Date, b: Date): boolean {
|
export function isTimeBefore(a: Date, b: Date): boolean {
|
||||||
|
|
Loading…
Reference in a new issue