registration
This commit is contained in:
13
frontend/style/node_modules/date-fns/quartersToMonths.js
generated
vendored
13
frontend/style/node_modules/date-fns/quartersToMonths.js
generated
vendored
@@ -1,6 +1,4 @@
|
||||
"use strict";
|
||||
exports.quartersToMonths = quartersToMonths;
|
||||
var _index = require("./constants.js");
|
||||
import { monthsInQuarter } from "./constants.js";
|
||||
|
||||
/**
|
||||
* @name quartersToMonths
|
||||
@@ -10,8 +8,6 @@ var _index = require("./constants.js");
|
||||
* @description
|
||||
* Convert a number of quarters to a full number of months.
|
||||
*
|
||||
* @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).
|
||||
*
|
||||
* @param quarters - The number of quarters to be converted
|
||||
*
|
||||
* @returns The number of quarters converted in months
|
||||
@@ -21,6 +17,9 @@ var _index = require("./constants.js");
|
||||
* const result = quartersToMonths(2)
|
||||
* //=> 6
|
||||
*/
|
||||
function quartersToMonths(quarters) {
|
||||
return Math.trunc(quarters * _index.monthsInQuarter);
|
||||
export function quartersToMonths(quarters) {
|
||||
return Math.trunc(quarters * monthsInQuarter);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default quartersToMonths;
|
||||
|
||||
Reference in New Issue
Block a user