{"ScriptPreparationCode":null,"TestCases":[{"Name":"Array reduce","Code":"const result = products.reduce((selectionData, product) =\u003E {\r\n if (!selectors.getInUse(getState(), product)) {\r\n if (isChecked) {\r\n selectionData[product.id] = CHECKBOX_STATUS.CHECKED;\r\n }\r\n }\r\n return selectionData;\r\n }, {});\r\nconsole.log(result);","IsDeferred":false},{"Name":"Array for","Code":"const selectionData = {};\r\n\r\nfor (let i = 0; i \u003C products.length; i\u002B\u002B) {\r\n const product = products[i];\r\n if (!selectors.getInUse(getState(), product)) {\r\n if (isChecked) {\r\n selectionData[product.id] = CHECKBOX_STATUS.CHECKED;\r\n }\r\n }\r\n}\r\nconsole.log(result);","IsDeferred":false}]}