{"ScriptPreparationCode":"var getDate = (index) =\u003E {\r\n var sdate = new Date(\u00272023-01-01\u0027)\r\n var tdate = new Date(sdate.getTime() \u002B 86400000 * index)\r\n\r\n return \u0060${tdate.getFullYear()}-${tdate.getMonth() \u002B 1}-${tdate.getDate()}\u0060\r\n}\r\nvar dailySettings = Array(752)\r\n .fill({})\r\n .reduce((acc, curr, i) =\u003E {\r\n acc = {\r\n ...acc,\r\n [getDate(i)]: {\r\n 1: 100,\r\n 2: 110,\r\n extraAdult: 50,\r\n extraChild: 50,\r\n algorithm: \u0027DBR\u0027,\r\n baseRateCode: \u0027RATE-1\u0027,\r\n baseAmount: 110\r\n }\r\n };\r\n\r\n return acc;\r\n }, {});\r\n \r\nvar predicate = (v, k) =\u003E (k === \u00272025-1-1\u0027)\r\n\r\nvar predicate2 = v =\u003E v === \u00272025-1-1\u0027\r\n","TestCases":[{"Name":"pickby","Code":"_.pickBy(dailySettings, predicate);","IsDeferred":false},{"Name":"native","Code":"Object.keys(dailySettings).reduce((acc, cur) =\u003E {\r\n if (predicate2(cur)) {\r\n acc = {\r\n ...acc,\r\n [cur]: dailySettings[cur]\r\n }\r\n }\r\n return acc;\r\n}, {});","IsDeferred":false}]}