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