{"ScriptPreparationCode":null,"TestCases":[{"Name":"native week first last","Code":"const base = new Date()\r\nconst firstDate = (new Date(base)).setDate(base.getDate() - base.getDay());\r\nconst lastDate = (new Date(base)).setDate(base.getDate() \u002B (7 - (base.getDay() \u002B 1)));","IsDeferred":false},{"Name":"dayjs week first last","Code":"const base = new dayjs()\r\nconst firstDate = base.startOf(\u0027week\u0027);\r\nconst lastDate = base.endOf(\u0027week\u0027);","IsDeferred":false}]}