aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js
blob: 21a6ba369e851927729129a11fcf5098eb3e45d4 (plain) (blame)
1
2
3
4
5
6
7
8
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();
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage