{"ScriptPreparationCode":"const SIZE = 1000\r\nconst RESOURCE_TYPES = [...Array(SIZE).fill().keys()] // 0..100\r\nconst object1 = [...Array(SIZE * .5).fill().keys()].reduce((res, idx) =\u003E ({...res, [idx \u002B SIZE * .5]: 1}), {}) // 0..49 = undefined, 50..99 = 1\r\nconst object2 = [...Array(SIZE).fill().keys()].filter(x =\u003E x % 2).reduce((res, idx) =\u003E ({...res, [idx]: 1}), {}) // 1,3,5..97,99 = 1\r\nconst map1 = new Map(Object.keys(object1).map(k =\u003E ([\u002Bk, object1[k]])))\r\nconst map2 = new Map(Object.keys(object2).map(k =\u003E ([\u002Bk, object2[k]])))\r\nwindow.DATA = {\r\n RESOURCE_TYPES, object1, object2, map1, map2\r\n}","TestCases":[{"Name":"RESOURCE_TYPES \u002B ...res","Code":"const {RESOURCE_TYPES, object1, object2, map1, map2} = window.DATA\r\nRESOURCE_TYPES.reduce((res, type) =\u003E {\r\n return {\r\n ...res,\r\n [type]: (object1[type] ?? 0) \u002B (object2[type] ?? 0)\r\n }\r\n}, object1)","IsDeferred":false},{"Name":"RESOURCE_TYPES \u002B res[type]","Code":"const {RESOURCE_TYPES, object1, object2, map1, map2} = window.DATA\r\nRESOURCE_TYPES.reduce((res, type) =\u003E {\r\n res[type] = (object1[type] ?? 0) \u002B (object2[type] ?? 0)\r\n return res\r\n}, object1)","IsDeferred":false},{"Name":"RESOURCE_TYPES.map","Code":"const {RESOURCE_TYPES, object1, object2, map1, map2} = window.DATA\r\nRESOURCE_TYPES.map((type) =\u003E {\r\n\tobject1[type] = (object1[type] ?? 0) \u002B (object2[type] ?? 0)\r\n})","IsDeferred":false},{"Name":"RESOURCE_TYPES.forEach","Code":"const {RESOURCE_TYPES, object1, object2, map1, map2} = window.DATA\r\nRESOURCE_TYPES.forEach((type) =\u003E {\r\n\tobject1[type] = (object1[type] ?? 0) \u002B (object2[type] ?? 0)\r\n})","IsDeferred":false},{"Name":"RESOURCE_TYPES for of","Code":"const {RESOURCE_TYPES, object1, object2, map1, map2} = window.DATA\r\nfor (const type of RESOURCE_TYPES) {\r\n\tobject1[type] = (object1[type] ?? 0) \u002B (object2[type] ?? 0)\r\n}","IsDeferred":false},{"Name":"RESOURCE_TYPES for let i","Code":"const {RESOURCE_TYPES, object1, object2, map1, map2} = window.DATA\r\nfor (let i = 0; i \u003C RESOURCE_TYPES.length; \u002B\u002Bi) {\r\n const type = RESOURCE_TYPES[i]\r\n object1[type] = (object1[type] ?? 0) \u002B (object2[type] ?? 0)\r\n}","IsDeferred":false},{"Name":"RESOURCE_TYPES \u002B Map","Code":"const {RESOURCE_TYPES, object1, object2, map1, map2} = window.DATA\r\nRESOURCE_TYPES.forEach((type) =\u003E {\r\n\tmap1.set(type, (map1.get(type) ?? 0) \u002B (map2.get(type) ?? 0))\r\n})","IsDeferred":false}]}