Skip to content

Commit

Permalink
refactor: rename file / function
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadam committed Nov 24, 2022
1 parent 2e4f0c8 commit bd75af2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/compareDate.ts → src/is-equal-date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
* @remarks Date.prototype.getTime() returns number of milliseconds.
* @beta
*/
function compareDate(target: Required<Date>, other: Required<Date>): boolean {
export function isEqualDate(
target: Required<Date>,
other: Required<Date>
): boolean {
return target.getTime() === other.getTime();
}

export default compareDate;

0 comments on commit bd75af2

Please sign in to comment.