hugoWebsite/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js

8 lines
434 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
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();
}