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

Function isEqualDate

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

Source from the content-addressed store, hash-verified

77}
78
79export function isEqualDate (d1, d2) {
80 if (!d1 || !d2 || !(d1 instanceof Date) || !(d2 instanceof Date)) {
81 return false;
82 }
83
84 return d1 && d2 &&
85 (d1.getFullYear() === d2.getFullYear()) &&
86 (d1.getMonth() === d2.getMonth()) &&
87 (d1.getDate() === d2.getDate());
88}
89
90export function isEqual (d1, d2) {
91 if (!d1 || !d2 || !(d1 instanceof Date) || !(d2 instanceof Date)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…