{"ScriptPreparationCode":"var input = [];\r\n\r\nfor (i = 0; i \u003C 100000; i\u002B\u002B) {\r\n const date = new Date(Math.random());\r\n input.push({\r\n key: \u0027businessDate\u0027,\r\n value: date.toString()\r\n });\r\n}","TestCases":[{"Name":"1","Code":"const result = input.map(x=\u003E{\r\n if (x.key === \u0027businessDate\u0027) { \r\n return new Date(x.value);\r\n }\r\n});","IsDeferred":false},{"Name":"2","Code":"const result = input.map(x=\u003E{\r\n if (typeof value === \u0027string\u0027) { \r\n return new Date(x.value);\r\n }\r\n});","IsDeferred":false},{"Name":"3","Code":"const result = input.map(x=\u003E{\r\n if (x.key.endsWith(\u0027Date\u0027)) { \r\n return new Date(x.value);\r\n }\r\n});","IsDeferred":false},{"Name":"4","Code":"const result = input.map(x=\u003E{\r\n if (/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})/.test(x.value)) { \r\n return new Date(x.value);\r\n }\r\n});\r\n","IsDeferred":false}]}