{"ast":null,"code":"import { monthsInQuarter } from \"./constants.mjs\";\n\n/**\n * @name quartersToMonths\n * @category Conversion Helpers\n * @summary Convert number of quarters to months.\n *\n * @description\n * Convert a number of quarters to a full number of months.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param quarters - The number of quarters to be converted\n *\n * @returns The number of quarters converted in months\n *\n * @example\n * // Convert 2 quarters to months\n * const result = quartersToMonths(2)\n * //=> 6\n */\nexport function quartersToMonths(quarters) {\n  return Math.trunc(quarters * monthsInQuarter);\n}\n\n// Fallback for modularized imports:\nexport default quartersToMonths;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}