{"version":3,"sources":["../src/isBefore.ts"],"sourcesContent":["import { date } from \"./date\"\nimport type { DateInput, MaybeDateInput } from \"./types\"\n\n/**\n * Is the first date before the second one or the current time?\n *\n * @param inputDate - The date that should be before the other one to return true\n * @param [dateToCompare] - The date to compare with or the current time if nothing given\n *\n * @returns The first date is before the second date or the current time.\n */\nexport function isBefore(inputDate: DateInput, dateToCompare?: MaybeDateInput): boolean {\n  const _date = date(inputDate)\n  const _dateToCompare = date(dateToCompare)\n\n  return +_date < +_dateToCompare\n}\n"],"mappings":";AAAA,SAAS,YAAY;AAWd,SAAS,SAAS,WAAsB,eAAyC;AACtF,QAAM,QAAQ,KAAK,SAAS;AAC5B,QAAM,iBAAiB,KAAK,aAAa;AAEzC,SAAO,CAAC,QAAQ,CAAC;AACnB;","names":[]}