MCPcopy Create free account
hub / github.com/Lobos/react-ui / isEqual

Function isEqual

src/utils/datetime.js:90–96  ·  view source on GitHub ↗
(d1, d2)

Source from the content-addressed store, hash-verified

88}
89
90export function isEqual (d1, d2) {
91 if (!d1 || !d2 || !(d1 instanceof Date) || !(d2 instanceof Date)) {
92 return false;
93 }
94
95 return d1.getTime() === d2.getTime();
96}
97
98export function monthDiff (d1, d2) {
99 let m;

Callers

nothing calls this directly

Calls 1

getTimeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…