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