registration
This commit is contained in:
11
frontend/style/node_modules/date-fns/monthsToQuarters.js
generated
vendored
11
frontend/style/node_modules/date-fns/monthsToQuarters.js
generated
vendored
@@ -1,6 +1,4 @@
|
||||
"use strict";
|
||||
exports.monthsToQuarters = monthsToQuarters;
|
||||
var _index = require("./constants.js");
|
||||
import { monthsInQuarter } from "./constants.js";
|
||||
|
||||
/**
|
||||
* @name monthsToQuarters
|
||||
@@ -24,7 +22,10 @@ var _index = require("./constants.js");
|
||||
* const result = monthsToQuarters(7)
|
||||
* //=> 2
|
||||
*/
|
||||
function monthsToQuarters(months) {
|
||||
const quarters = months / _index.monthsInQuarter;
|
||||
export function monthsToQuarters(months) {
|
||||
const quarters = months / monthsInQuarter;
|
||||
return Math.trunc(quarters);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default monthsToQuarters;
|
||||
|
||||
Reference in New Issue
Block a user