{"ScriptPreparationCode":"const original = {\r\n \u0027this is a somewhat long key with many characters0\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters1\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters2\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters3\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters4\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters5\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters6\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters7\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters8\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters9\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters10\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters11\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters12\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters13\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters14\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters15\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters16\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters17\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters18\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters19\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n \u0027this is a somewhat long key with many characters20\u0027: \u0027This is a value of somewhat the same length\u0027,\r\n};","TestCases":[{"Name":"Get copy using Object.assign","Code":"const newVersion = Object.assign({}, original ?? {});","IsDeferred":false},{"Name":"Get copy using spread","Code":"const newVersion = { ...(original ?? {}) };","IsDeferred":false},{"Name":"Get copy using structuredClone","Code":"const newVersion = structuredClone(original ?? {});","IsDeferred":false},{"Name":"Copy manually using for loop","Code":"const newVersion = {};\r\nconst keys = Object.keys(original ?? {});\r\nconst len = keys.length;\r\nfor (let i = 0; i \u003C len; i\u002B\u002B) {\r\n newVersion[keys[i]] = original[keys[i]];\r\n}","IsDeferred":false},{"Name":"Copy using JSON.stringify","Code":"const newVersion = JSON.parse(JSON.stringify(original ?? {}));","IsDeferred":false}]}