{"ScriptPreparationCode":null,"TestCases":[{"Name":"for in with hasOwnProperty","Code":"const props = { color: \u0027red\u0027, value: \u0027abc\u0027, fill: \u0027outline\u0027, button: true, redirect: 10, other: \u0027hello\u0027, object: { test: true }};\r\nlet result = {};\r\nfor (const prop in props) {\r\n if (props.hasOwnProperty(prop)) {\r\n result[prop] = props[prop]; \r\n }\r\n}","IsDeferred":false},{"Name":"for of with Object.entries","Code":"const props = { color: \u0027red\u0027, value: \u0027abc\u0027, fill: \u0027outline\u0027, button: true, redirect: 10, other: \u0027hello\u0027, object: { test: true }};\r\nlet result = {};\r\nfor (const [prop, value] of Object.entries(props)) {\r\n result[prop] = value;\r\n}","IsDeferred":false}]}