I have a function that grabs the date key with format of YYYY-MM-DD, eg. 2021-03-29 (monday) get its week number (13), and using that, get that week number's monday, in case of 2021-03-29 it would be the same day, incase of 2021-03-30 it should be 2021-03-29 etc, as long as it's on the same week (by week number)
I have created a sandbox for it.
http://jsfiddle.net/x6sL8k7e/1/
Test code
const dateKey = "2021-03-29"
const weekNumber = moment(dateKey, 'YYYY-MM-DD').isoWeek() // getting week nr - 13
const date = moment(dateKey, 'YYYY-MM-DD')
.clone()
.week(weekNumber) // want to get monday for week #13
.day('Monday')
console.log('date', date.format('YYYY-MM-DD'))
PS. It works flawlessly with this year's dates (any date)
