Skip to content

Commit

Permalink
dates can be checked with === equal
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeh committed Dec 12, 2018
1 parent 7ccd3ef commit 8d31205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/equal.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const equal = (a, b) => {

// dates
if (is.date(a)) {
return a.getTime() === b.getTime()
return a === b
}

// functions
Expand Down

0 comments on commit 8d31205

Please sign in to comment.