{"version":3,"sources":["../src/monthStart.ts"],"sourcesContent":["import { date } from \"./date\"\nimport type { MaybeDateInput } from \"./types\"\n\n/**\n * Returns a Date object for the first day of a month.\n * @param [inputDate] - A string, Date object or nothing for the current time\n */\nexport function monthStart(inputDate?: MaybeDateInput): Date {\n  const d = date(inputDate)\n  d.setDate(1)\n  d.setHours(0, 0, 0, 0)\n  return d\n}\n"],"mappings":";AAAA,SAAS,YAAY;AAOd,SAAS,WAAW,WAAkC;AAC3D,QAAM,IAAI,KAAK,SAAS;AACxB,IAAE,QAAQ,CAAC;AACX,IAAE,SAAS,GAAG,GAAG,GAAG,CAAC;AACrB,SAAO;AACT;","names":[]}