UNPKG

chayns-components

Version:

A set of beautiful React components for developing chayns® applications.

14 lines (12 loc) 509 B
"use strict"; exports.__esModule = true; exports.default = areDatesEqual; /** * Compares two dates with year, month and date (looser equality than == operator) * @param {Date} date1 - First date for comparison * @param {Date} date2 - First date for comparison */ function areDatesEqual(date1, date2) { return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate(); // TODO: UTC-comparison } //# sourceMappingURL=areDatesEqual.js.map