quartersToMonths()
Returns the number of months equal to the given number of quarters. There are 3 months in a quarter.
Usage
import { quartersToMonths } from 'easy-dates';
quartersToMonths(quarters);
Prop types
prop | type | required | default |
---|---|---|---|
quarters | number | yes | null |
Examples
quartersToMonths(1); // 3
quartersToMonths(4); // 12
quartersToMonths('12'); // Error