hugoWebsite/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js
Jeremy Nusser 0ab675d92b Initial commit... 🎉🎉🎉
2022-10-28 17:20:35 -05:00

8 lines
No EOL
434 B
JavaScript

import requiredArgs from "../requiredArgs/index.js";
import startOfUTCWeek from "../startOfUTCWeek/index.js";
export default function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) {
requiredArgs(2, arguments);
var dateLeftStartOfWeek = startOfUTCWeek(dirtyDateLeft, options);
var dateRightStartOfWeek = startOfUTCWeek(dirtyDateRight, options);
return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();
}