yearsToQuarters()
Returns the number of quarters equal to the given number of years.
Usage
import { yearsToQuarters } from 'easy-dates';
yearsToQuarters(years);
Prop types
prop | type | required | default |
---|---|---|---|
years | number | yes | null |
Examples
yearsToQuarters(1); // 4
yearsToQuarters(0.5); // 2
yearsToQuarters('1'); // Error