🏠FunctionsyearsToMonths()On this pageyearsToMonths()Returns the number of months equal to the given number of years.Usageimport { yearsToMonths } from 'easy-dates';yearsToMonths(years);CopyProp typesproptyperequireddefaultyearsnumberyesnullExamplesyearsToMonths(1); // 12CopyyearsToMonths(2.5); // 30CopyyearsToMonths('1'); // ErrorCopy