{"ScriptPreparationCode":"let array = [];\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n\tarray.push({ id: i\u002B1 })\r\n}\r\n\r\nlet obj = array.reduce((acc, item) =\u003E ({ ...acc, [item]: \u0027dataObj\u0027 }), {});","TestCases":[{"Name":"OBJECT","Code":"let items = obj;\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n \titems = obj;\r\n\t\r\n \tconst newItems = {\r\n ...items,\r\n \t\t5050: \u0027newDataObj\u0027\r\n }\r\n\r\n const copyItems = { ...items }\r\n delete copyItems[\u00275050\u0027]\r\n \r\n\r\n items = [];\r\n}","IsDeferred":false},{"Name":"ARRAY","Code":"let items = array;\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n \titems = array;\r\n \r\n\tconst index = items.findIndex((item) =\u003E item.id === 5050) || null;\r\n \r\n \tif (index) {\r\n\t\titems[index] = 5050\r\n } else {\r\n\t\titems.push({ id: 5050 })\r\n }\r\n \r\n \titems.filter((item) =\u003E item.id !== 5050)\r\n \r\n items = [];\r\n}","IsDeferred":false}]}