{"ScriptPreparationCode":"for (i = 0; i \u003C 10; i\u002B\u002B) {}","TestCases":[{"Name":"Test Spread operator","Code":"const firstObject = { \r\n \tsampleData: \u0027Hello world\u0027,\r\n\tsampleMethod: () =\u003E { return true; }\r\n};\r\nconst secondObject = {...firstObject};\r\nObject.setPrototypeOf(secondObject, Object.getPrototypeOf(firstObject));\r\n\r\nObject.keys(firstObject).forEach((key) =\u003E {\r\n if (RegExp(\u0027Method\u0027).test(key)) {\r\n Object.defineProperty(secondObject, key, { value: undefined });\r\n }\r\n});","IsDeferred":false},{"Name":"Test Object.create","Code":"const firstObject = { \r\n \tsampleData: \u0027Hello world\u0027,\r\n\tsampleMethod: () =\u003E { return true; }\r\n};\r\nconst secondObject = Object.create(Object.getPrototypeOf(firstObject), Object.getOwnPropertyDescriptors(firstObject));\r\n\r\nObject.keys(firstObject).forEach((key) =\u003E {\r\n if (RegExp(\u0027Method\u0027).test(key)) {\r\n Object.defineProperty(secondObject, key, { value: undefined });\r\n }\r\n});","IsDeferred":false},{"Name":"Test Object.assign","Code":"const firstObject = { \r\n \tsampleData: \u0027Hello world\u0027,\r\n\tsampleMethod: () =\u003E { return true; }\r\n};\r\n\r\nconst secondObject = Object.assign({}, firstObject);\r\nObject.setPrototypeOf(secondObject, Object.getPrototypeOf(firstObject));\r\n\r\nObject.keys(firstObject).forEach((key) =\u003E {\r\n if (RegExp(\u0027Method\u0027).test(key)) {\r\n Object.defineProperty(secondObject, key, { value: undefined });\r\n }\r\n});","IsDeferred":false}]}