{"version":3,"sources":["../src/isEqual.ts"],"sourcesContent":["import { date } from \"./date\"\nimport type { DateInput, MaybeDateInput } from \"./types\"\n\n/**\n * Are the given dates equal or given date to the current time?\n *\n * @param dateLeft - The first date to compare\n * @param [dateRight] - The second date to compare or the current time of nothing given\n *\n * @returns The dates are equal or date to the current time\n */\nexport function isEqual(dateLeft: DateInput, dateRight?: MaybeDateInput): boolean\n/**\n * Are the given dates equal or given date to the current time?\n *\n * @param [dateLeft] - The first date to compare or the current time if null given\n * @param dateRight - The second date to compare\n *\n * @returns The dates are equal or date to the current time\n */\n\nexport function isEqual(dateLeft: MaybeDateInput, dateRight: DateInput): boolean\nexport function isEqual(dateLeft: MaybeDateInput, dateRight?: MaybeDateInput): boolean {\n  const _dateLeft = date(dateLeft)\n  const _dateRight = date(dateRight)\n\n  return +_dateLeft === +_dateRight\n}\n"],"mappings":";AAAA,SAAS,YAAY;AAsBd,SAAS,QAAQ,UAA0B,WAAqC;AACrF,QAAM,YAAY,KAAK,QAAQ;AAC/B,QAAM,aAAa,KAAK,SAAS;AAEjC,SAAO,CAAC,cAAc,CAAC;AACzB;","names":[]}