Rocky_Mountain_Vending/.pnpm-store/v10/files/6a/1219c9ab13fdc9f427a1dd63a5bbe8ce85ad0d59d5fe1dd20f8be1d669ca5f519505c7333afd317866a6d969af8d8d6a80e89cdb20d37c041ad7fc354a2a92
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

24 lines
562 B
Text

"use strict";
exports.yearsToMonths = yearsToMonths;
var _index = require("./constants.cjs");
/**
* @name yearsToMonths
* @category Conversion Helpers
* @summary Convert years to months.
*
* @description
* Convert a number of years to a full number of months.
*
* @param years - The number of years to be converted
*
* @returns The number of years converted in months
*
* @example
* // Convert 2 years into months
* const result = yearsToMonths(2)
* //=> 24
*/
function yearsToMonths(years) {
return Math.trunc(years * _index.monthsInYear);
}