function getMondayDateOfCurrentWeek() {
const today = new Date();
const first = today.getDate() - today.getDay() + 1;
const monday = new Date(today.setDate(first));
return monday;
}
console.log(getMondayDateOfCurrentWeek().toDateString());
/*
run:
"Mon Mar 21 2022"
*/