{"ScriptPreparationCode":"var list = [{\r\n\tid: \u0022a\u0022,\r\n name: \u0022asd\u0022,\r\n age: 12,\r\n isValid: false,\r\n},\r\n {\r\n\tid: \u0022b\u0022,\r\n name: \u0022bsd\u0022,\r\n age: 12,\r\n isValid: false,\r\n},\r\n {\r\n\tid: \u0022c\u0022,\r\n name: \u0022c\u0022,\r\n age: 12,\r\n isValid: false,\r\n},\r\n {\r\n\tid: \u0022d\u0022,\r\n name: \u0022dsd\u0022,\r\n age: 12,\r\n isValid: false,\r\n},\r\n {\r\n\tid: \u0022e\u0022,\r\n name: \u0022esd\u0022,\r\n age: 12,\r\n isValid: false,\r\n},\r\n {\r\n\tid: \u0022f\u0022,\r\n name: \u0022fsd\u0022,\r\n age: 12,\r\n isValid: false,\r\n},\r\n {\r\n\tid: \u0022g\u0022,\r\n name: \u0022gsd\u0022,\r\n age: 12,\r\n isValid: false,\r\n},\r\n {\r\n\tid: \u0022h\u0022,\r\n name: \u0022hsd\u0022,\r\n age: 12,\r\n isValid: false,\r\n},\r\n {\r\n\tid: \u0022i\u0022,\r\n name: \u0022isd\u0022,\r\n age: 12,\r\n isValid: false,\r\n},];\r\n\r\nvar map = new Map();\r\nlist.forEach((obj) =\u003E {\r\n map.set(obj.id, obj);\r\n});\r\n\r\nvar id = \u0022e\u0022;","TestCases":[{"Name":"Array","Code":"const foundObj = list.find((obj) =\u003E obj.id === id);\r\nfoundObj.isValid = true;","IsDeferred":false},{"Name":"Map","Code":"const foundObj2 = map.get(id);\r\nfoundObj2.isValid = true;","IsDeferred":false}]}